我已成功将html5版本的facebook评论添加到我的网页。现在我正在尝试根据文档确定如何收到新评论的通知。我将此代码添加到脚本顶部的脚本中。
FB.Event.subscribe('edge.create',
function(response) {
comment.create{
href: "", /* Open Graph URL of the Comment Plugin */
commentID: "", /* The commentID of the deleted comment */
}
}
);
a)我的代码是否正确 b)我不确定在哪里添加代码 c)我也在使用html5版本的评论插件,我是否需要使用xfbml版本? d)我是否需要更换评论区域内的任何代码或者由facebook自动处理?即添加一个href url等。
答案 0 :(得分:1)