Can't get “count” in “likes” and “comments” fields using my own registered app's access_token

大城市里の小女人 提交于 2019-12-05 16:43:34

Just found the solution myself, it is all due to the FB's migration for the October 2013 Breaking Changes. They change the POST_ID/likes format, but probably as the migration has not been completed yet, so there are some inconsistencies. The following is an official statement that I got from the Facebook Developer Alert.

POST_ID/likes format will change. Apps will be able to retrieve all likes on a post (rather than the first 4 as it is today) through paging. As a result of the functionality update, the like count will be moved to the summary field.

So now if you cannot see “count” in “likes” or “comments” field, just follow the steps below:

  1. Send a GET request to, let's say https://graph.facebook.com/microsoft/posts?fields=likes&limit=1&access_token= and then you get the POST_ID = "id"
  2. a new GET request to https://graph.facebook.com/POST_ID/likes?summary=true&access_token=, then you will find the "total_count" of "likes" in "summary" field.

Hope this helps!

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