【问题标题】:Facebook event comment.create not firingFacebook事件comment.create未触发
【发布时间】:2012-05-04 19:02:08
【问题描述】:

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

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

【问题讨论】:

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


    【解决方案1】:

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

    【讨论】:

    • 啊。真可惜。任何人都可以确认吗?您是否知道有人向“喜欢”添加评论时是否存在事件?
    • 我不这么认为;对我来说这听起来很合理,但我认为它从来没有那样工作过,也没有那样记录
    猜你喜欢
    • 1970-01-01
    • 2019-05-18
    • 2012-07-13
    • 1970-01-01
    • 1970-01-01
    • 2010-11-08
    • 2019-01-31
    • 2013-04-09
    • 2015-07-25
    相关资源
    最近更新 更多