1

我正在使用 Facebook 的“赞”按钮并订阅两个事件

edge.create - 当用户点击“Like”按钮时

comment.create - 当用户随后在出现的弹出窗口中键入评论时

edge.create 事件正在触发,但 comment.create 似乎没有发生。这是代码:

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");
        }
    );
};

我错过了什么吗?

谢谢。-E

4

1 回答 1

1

我不认为该事件是为“赞”按钮的“添加评论”弹出窗口而触发的;它仅记录为与评论插件本身一起使用

于 2012-05-04T19:14:53.297 回答