Facebook Graph API get all comments

。_饼干妹妹 提交于 2019-11-29 01:35:22

The correct syntax to read comments from the Facebook Graph API is as follows:

GET /{object-id}/comments

So your URL would look like this:

https://graph.facebook.com/xxx/comments

Here's a live example that looks at comments on Coca-Cola's cover photo:

http://graph.facebook.com/10152297032458306/comments

You can read more about reading comments via the Graph API here.

ashanrupasinghe

check this stackOverflow topic

You need to call it from a secure request https and provide an access_token (19292868552_118464504835613 is Facebook post) :

( (19292868552) is the page or group id and (118464504835613) is the post id)

https://graph.facebook.com/19292868552_118464504835613/comments?access_token=XXX

EDIT: Added the object from the post document. Try clicking the comments connection and then remove the access_token and try and see the difference.

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