3
我想,當用戶離開的評論或喜歡一個頁面就知道了,所以我用Facebook的意見和喜歡的問題
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不同,所以我猜其他事件還有其他名字嗎? 類似按鈕完全不工作,它提供了以下錯誤
網站無法訪問該頁面在http://localhost.local/interviews/view/2無法達成。
我使用:
<fb:comments numposts="5" notify="true" width="450" height="500" class="fb_iframe_widget">/fb:comments>
,因爲它是在url中所示,我在本地主機上的環境中工作,這是什麼問題?
thanx我會嘗試部署公開並測試它..那麼FB.Event.subscribe('comment.remove '),你知道如何訂閱刪除評論嗎? – Brary
不應該有任何特殊需要,當有人從插件中刪除他們的評論時,事件應該會觸發 - 如果沒有,請在http://bugs.developers.facebook.net/上提交錯誤報告,我們可以看一看 – Igy