Facebook事件评论。创建没有解雇

时间:2012-05-04 19:02:08

标签: facebook facebook-graph-api facebook-like opengraph facebook-opengraph

我正在使用Facebook“赞”按钮和subscribing to two events

  

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

     

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

1 个答案:

答案 0 :(得分:1)

我不认为Like按钮的'添加评论'弹出窗口会触发该事件;它只记录为使用Comments Plugin本身

相关问题