我已成功将 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等。