简体   繁体   中英

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?

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/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM