我想获得评论发表的评论。我正在尝试使用评论ID来获取评论,但fb graph api没有返回数据。
这是我用来获取所有评论的图形api查询:
https://graph.facebook.com/v3.2/613053785834585/?fields=ratings%7Bopen_graph_story%7D&access_token=accesstoken
我的结果是:
{
"ratings": {
"data": [
{
"open_graph_story": {
"id": "1301773496640266",
"message": "improve some more quality not as per standards.......",
"start_time": "2019-04-08T13:24:47+0000",
"type": "sellers.rates",
"data": {
"recommendation_type": "negative",
"review_text": "improve some more quality not as per standards.......",
"is_hidden": false,
"language": "en",
"seller": {
"id": "613053785834585",
"title": "Developer Zone",
"type": "profile",
"url": "https://www.facebook.com/DeveloperZoneKrishan/"
},
"has_review_update": false
}
}
},
{
"open_graph_story": {
"id": "1151783264995390",
"message": "This review for testing, Please ignore it.",
"start_time": "2019-04-03T13:21:56+0000",
"type": "sellers.rates",
"data": {
"recommendation_type": "positive",
"review_text": "This review for testing, Please ignore it.",
"is_hidden": false,
"language": "en",
"seller": {
"id": "613053785834585",
"title": "Developer Zone",
"type": "profile",
"url": "https://www.facebook.com/DeveloperZoneKrishan/"
},
"has_review_update": false
}
}
}
]
},
"id": "613053785834585"
}
现在,我想获取有关ID为1151783264995390的最新评论的评论,使用:
https://graph.facebook.com/v3.2/1151783264995390/comments?access_token=accesstoken
但是这样返回空:
{
"data": []
}
我希望它会返回发布在特定评论(example)上的评论数据。
答案 0 :(得分:0)
这很可能是Facebook方面的错误。在Facebook开发人员门户网站上,当前存在有关此问题的一些未解决的问题:
https://developers.facebook.com/support/bugs/2262278433989990
https://developers.facebook.com/support/bugs/334315677220267