繁体   English   中英

Facebook评论并喜欢问题

[英]Facebook comments and likes problem

我想知道用户何时发表评论或喜欢某个页面,所以我用过

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

只有'comments.add'正在运行,这与facebook doc不同,所以我猜其他事件还有其他名称吗? Like按钮根本不起作用,它会出现以下错误

网站无法访问无法访问http://localhost.local/interviews/view/2上的页面。

我在用:

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

因为它在url中显示,我正在使用localhost环境,这是问题吗?

是的,如果Facebook的抓取工具无法访问您的网页,则无法获取。 我不确定评论插件是否具有该级别的验证,所以我认为评论插件可能仍然有用

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM