Brary
Brary

Reputation: 1014

Facebook comments and likes problem

I would like to know when a user leaves a comment or likes a page, so I used

FB.Event.subscribe('comments.add', function(response) {
    alert('comment add');       
}); 
FB.Event.subscribe('comment.remove', function(response) {
    alert('comment remove');
});
FB.Event.subscribe('edge.create', function(response) {
    alert('like add');
});
FB.Event.subscribe('edge.remove', function(response) {
    alert('like remove');
});

Only 'comments.add' is working which is different from the facebook doc, so I guess there are another names for the other events? The like button doesn't work at all it gives the following error

Website inaccessible The page at http://localhost.local/interviews/view/2 could not be reached.

I am using:

<fb:comments numposts="5" notify="true" width="450" height="500" class="fb_iframe_widget">/fb:comments>

as it is shown in the url, I am working on localhost environment, is this the problem?

Upvotes: 3

Views: 705

Answers (1)

Igy
Igy

Reputation: 43816

Yep, if Facebook's crawler can't reach your page, it can't be liked. I'm not sure the comments plugin has that level of verification so I think the comments plugin may still work

Upvotes: 2

Related Questions