hanleyhansen
hanleyhansen

Reputation: 6437

Facebook API - Check Likes and Comments of Post

Is there a way to check the number of likes and comments that a particular post has? I wanna display that number on my site so i need to reference the API somehow to get that result. I am looking for either a PHP or a javascript solution. This will also be done dynamically. I want to keep track of likes posted by my app to different users so I'm thinking i should store the post id when I make the post. Any ideas?

Upvotes: 1

Views: 2367

Answers (1)

TheodoreV
TheodoreV

Reputation: 304

Each post in facebook has a specific Id

You can use graph api to grab this id and see all the comments, likes and shares of it.

You simply have to make a POST call and grab the produced JSON

More information can be found on the links below http://graph.facebook.com/19292868552_10150189643478553

https://developers.facebook.com/tools/explorer/?method=GET&path=19292868552_10150189643478553

https://developers.facebook.com/docs/reference/api/post/

Upvotes: 1

Related Questions