How to capture JavaScript events on a Facebook page's iframe tabs

后端 未结 1 1184
南笙
南笙 2021-01-21 16:03

I am planning to create some dynamic content in a Facebook tab for my fan page. It should have content displayed if the visitor is not a fan, and then upon them clicking the Lik

相关标签:
1条回答
  • 2021-01-21 16:12

    On a Facebook fan page, when the user clicks the Like button, the whole page gets reloaded and Facebook sends an HTTP post to your website with a parameter called signed_request that you would need to decode and look at with server code, not javascript. The code to decode it will obviously vary depending on what language you are using, but the process is documented on Facebooks site. Once decoded, you will need to look at the page.liked value.

    0 讨论(0)
提交回复
热议问题