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

后端 未结 2 942
囚心锁ツ
囚心锁ツ 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:55

    Official FAQ:

    Q: How do I know when a user clicks a Like button?

    A: If you are using the XFBML version of the button, you can subscribe to the 'edge.create' event through FB.Event.subscribe.

    Source: Core Concepts › Social Plugins › Like Button

提交回复
热议问题