Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
342 views
in Technique[技术] by (71.8m points)

Detect facebook-like / message

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)?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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/


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...