Detect facebook-like / message

2019-09-21 17:31发布

I am haunted by the following question.

Want to make a mini-homepage, i would like to ask visitors to facebook-like my page, after they signed up to my newsletter.

Once they liked my page i want to send them an email thanking them for the facebook-like.

Question:

Is there a way i can detect if a certain visitor on my page has liked my page and connect this to his/her session / email address (might be different then fb email address)?

1条回答
虎瘦雄心在
2楼-- · 2019-09-21 17:38

It's in the Facebook documentation:

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

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

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

查看更多
登录 后发表回答