Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I track Facebook Like Button clicks?

Tags:

facebook

I am building a simple website. I am going to put Facebook Like Button on each article page of this website. How can I track how many people Liked this particular article? Does facebook provide an API for that?

Clarification

I am going to write a script that is going to pull the amount of "likes" for each page every hour. This would allow me to build a popularity graph.

like image 865
chromice Avatar asked Dec 06 '25 10:12

chromice


1 Answers

You will need to run FQL on link_stat table providing url of your article and retrieving like_count field. You can run FQL using FB.Data.query() from JS SDK.

like image 182
serg Avatar answered Dec 08 '25 01:12

serg



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!