使用 Graph API 检索 Facebook 帖子评论 [英] Retrieve Facebook Post Comments Using Graph API
问题描述
我尝试使用以下方法获取 Facebook 评论:
I tried to get Facebook comments using:
http://graph.facebook.com/[post_id]/comments
它只产生 15 条评论中的 2 条,并且没有 count
信息.
It results only 2 of 15 comments, and without count
info.
{
"data": [
{
"id": "[post_id]",
"from": {
"name": "[name]",
"id": "[id]"
},
"message": "[message]",
"created_time": "2011-01-23T02:36:23+0000"
},
{
"id": "[id]",
"from": {
"name": "[name]",
"id": "[id]"
},
"message": "[message]",
"created_time": "2011-01-23T05:16:56+0000"
}
]
}
有人知道为什么只有 2 条评论吗?
Anyone know why only 2 comments?
另外,我想检索评论(默认数量)或使用我的限制数量检索评论,并获取其评论数.任何的想法?(请使用Graph API).
Also, I want to retrieve comments (default number) or retrieve comments with my limit number, and get its comments count. Any idea? (Please use Graph API).
推荐答案
您需要从安全请求 https
中调用它并提供 access_token
:
You need to call it from a secure request https
and provide an access_token
:
https://graph.facebook.com/19292868552_118464504835613/comments?access_token=XXX
从 post
文档中添加了对象.尝试单击 comments
连接,然后删除 access_token
并尝试查看差异.
Added the object from the post
document. try clicking the comments
connection and then remove the access_token
and try and see the difference.
这篇关于使用 Graph API 检索 Facebook 帖子评论的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!