How to track the click of a Facebook Like Button?

I am creating a simple site. I am going to place Facebook Like Button on every article page of this site. How can I track how many people liked this article? Does facebook provide an API for this?

Explanation

I am going to write a script that will collect the number of “likes” for each page every hour. This would allow me to build a graph of popularity.

+3
source share
3 answers

You will need to run FQL in a link_stattable that provides urlyour article and retrieves the field like_count. You can run FQL using the FB.Data.query()from the JS SDK.

+5
source

, facebook . , .

- , - : 37,416 people like this. Be the first of your friends.

0

HI, ... , :

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

, , :

<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fgoogle.com&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe>

http% 3A% 2F% 2Fgoogle.com, URL... , , (, , , ) url ( : http://www.obkb.com/dcljr/charstxt.html)....this, (.. script), URL- iframe .

, .

0

Source: https://habr.com/ru/post/1756201/


All Articles