开发者

Facebook to check "like" on fan page

I noted there is a link to generate "like button" code at :

http://developers.facebook.com/docs/reference/plugins/like/

However it wasn't act as the top of 开发者_Go百科fanpage "like" button which will redirect users to another page if I setup to check the pages liked or not. Is there any other way that I can generate the button as the top of fanpage "like button" behavior or way of using the recent plugins like and redirect users once they liked the page?

Eric.


If you are using a XFBML like button then you can use the JavaScript SDK to detect likes by subcribing to the edge.create event using FB.Event.subscribe

FB.Event.subscribe('edge.create',
    function(response) {
        // Do redirect here
    }
);

For more information on the Facebook JavaScript SDK please go here: http://developers.facebook.com/docs/reference/javascript/

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜