我使用此代碼得到響應:FB.Event.subscribe代碼不工作
<fb:like layout="button_count" notify="true" colorscheme="dark" href="http://www.fbrell.com"></fb:like>
<script>
// this will fire when any of the like widgets are "liked" by the user
FB.Event.subscribe('edge.create', function(href, widget) {
alert('You liked ' + href, widget);
});
</script>
它沒有給予任何迴應。誰能說出我在做什麼錯?
您的示例工作正常。你之前在頁面上有任何錯誤嗎?一旦你按下「喜歡按鈕」,喜歡的數量是否會增加? – 2012-01-07 19:56:58