私はコードを持っています:
window.fbAsyncInit = function(){
FB.init({appId: myapid, status: true, cookie: true, xfbml: true});
FB.Event.subscribe('comment.create', function(response) {
alert('Thanks for Your comment!');
});
FB.Event.subscribe('comment.remove', function(response) {
alert('You deleted comment!');
});
};
ユーザー(私がテストした)がコメントを追加または削除するたびに起動しないのはなぜですか?
私はそれをテストしました:
window.fbAsyncInit = function(){
alert('123');
}
それは完璧に機能します。
FB.event へのハンドラーに問題があるのでしょうか。毎回それを機能させる方法は?
my_site.com を開くか www.my_site.com を開くかの違いは何ですか? か否か?my_site.com の Appid は 1 つしかありません。
ページ上のすべての FB.event をどのように処理すれば、それらすべてを表示して「comment.create」を選択できますか?
ありがとう!