Event handling to detect if user clicks a 'Like' button in XFBML page

后端 未结 2 935
囚心锁ツ
囚心锁ツ 2021-02-04 12:25

I have a Facebook connect app / canvas IFrame app which has a Like control for a fanpage.

I\'d like to detect when the user clicks the Like butt

2条回答
  •  别那么骄傲
    2021-02-04 12:42

    I think Facebook updated their documentation since I first looked :

    Now its clearer :

    http://developers.facebook.com/docs/reference/javascript/FB.Event.subscribe

    A 'like' click is the edge.create event

提交回复
热议问题