Eric
Eric

Reputation: 5215

Facebook event comment.create not firing

I'm using the Facebook "like" button and subscribing to two events:

edge.create - when the user clicks the "Like" button

comment.create - when the user then types a comment in the flyout window that appears

The edge.create event is firing, but comment.create doesn't seem to happen. Here's the code:

window.fbAsyncInit = function() {
    FB.init({
        appId      : '1111111111111', // App ID
        channelUrl : '//www.xxx.com/channel.php', // Channel File
        status     : true, // check login status
        cookie     : true, // enable cookies to allow the server to access the session
        xfbml      : true  // parse XFBML
    });

    FB.Event.subscribe('edge.create',
        function(response) {
            // user clicked facebook "like" button
            alert("like");
        }
    );

    FB.Event.subscribe('comment.create',
        function(response) {
            // user added comment to facebook like
            alert("comment");
        }
    );
};

Am I missing something?

Thanks. -E

Upvotes: 1

Views: 663

Answers (1)

Igy
Igy

Reputation: 43816

I don't think that event is fired for the Like button's 'add a comment' popup; it's only documented as working with the Comments Plugin itself

Upvotes: 1

Related Questions