Facebook Graph Api url comments and shares count doesn't work anymore

蹲街弑〆低调 提交于 2019-11-30 05:31:39

Looks like a bug to me. FQL Query is an alternative that still works. Here's an example:

select comment_count, share_count, like_count from link_stat where url = "http://techcrunch.com/2011/04/12/facebook-comments-now-on-over-50k-sites-get-more-social-with-latest-upgrade/"

Try the API Explorer here: http://developers.facebook.com/tools/explorer/?fql=select%20comment_count%2C%20share_count%2C%20like_count%20from%20link_stat%20where%20url%20%3D%20%22http%3A%2F%2Ftechcrunch.com%2F2011%2F04%2F12%2Ffacebook-comments-now-on-over-50k-sites-get-more-social-with-latest-upgrade%2F%22

However I would love it if they changed the Graph API to return share counts and comment counts again.

This official Facebook doc (developers.facebook.com/docs/reference/plugins/comments/) still recommends using the Graph API for comment counts, however it does not seem to work with new pages like this one: https://graph.facebook.com/?ids=http://techcrunch.com/2012/12/27/the-last-imac-question-mark/

Facebook deprecated FQL. So, Don't use fql. You can get the number of shares using the following path

http://graph.facebook.com/?id=http://sriraman.in/

For more information, Refer, http://blog.sriraman.in/url-share-count-facebook-twitter/

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!