本文介绍了检索Facebook发表评论使用Graph API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我尝试使用以下方式获取Facebook评论:
http://graph.facebook.com/ [post_id] /评论
只有15条评论中只有2条,而没有计数
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条评论?
另外,我想回顾rieㄧve rie。。。。。。。。。。。。。。。。。。任何想法? (请使用Graph API)。
解决方案
您需要从安全请求中调用 https
并提供一个
access_token
:
https:编辑: strong>
从文档。尝试点击评论
连接,然后删除 access_token
,并尝试看到差异。
I tried to get Facebook comments using:
http://graph.facebook.com/[post_id]/comments
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"
}
]
}
Anyone know why only 2 comments?
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).
解决方案 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
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.
这篇关于检索Facebook发表评论使用Graph API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!