开发者

FB.Event.subscribe Event is unstable?

开发者 https://www.devze.com 2023-04-06 14:45 出处:网络
I\'m using Facebook Javascript SDK. Using FB.Event.subscribe is unstable because sometimes it does not catch

I'm using Facebook Javascript SDK.

Using FB.Event.subscribe is unstable because sometimes it does not catch

though some events are t开发者_开发百科riggered.

Is there a way to catch those events without missing them?

In my case,

FB.Event.subscribe('comment.create', commentUp);
FB.Event.subscribe('comment.remove', commentDown);

comment events are not firing rarely.


The problem has solved!

My problem was that I have put

fbAsyncInit function and FB.Event.Subscribe inside of $(document).ready(function() });

It is solved since I have put those Very front of my javascript code.


FB.Event.Subscribe works flawlessly for me. Use firebug and see to it that there are no JS errors when comment is clicked ..

0

精彩评论

暂无评论...
验证码 换一张
取 消