通过Graph API检索Facebook评论

通过Graph API检索Facebook评论,facebook,facebook-graph-api,Facebook,Facebook Graph Api,我试图从GraphAPI中检索一些评论数据,包括评论、子评论等 我可以使用带有以下参数的端点在注释上获得like_count: {page-id}/ratings?fields=open_graph_story{comments{like_count}} 或者与子注释相同: {page-id}/ratings?fields=open_graph_story{comments{comments{like_count}}} 但我似乎找不到如何在评论中找到它们。 我试过这个: {page-id}/

我试图从GraphAPI中检索一些评论数据,包括评论、子评论等

我可以使用带有以下参数的端点在注释上获得
like_count

{page-id}/ratings?fields=open_graph_story{comments{like_count}}
或者与子注释相同:

{page-id}/ratings?fields=open_graph_story{comments{comments{like_count}}}
但我似乎找不到如何在评论中找到它们。 我试过这个:

{page-id}/ratings?fields=open_graph_story,like_count
这个(抛出一个错误):

需要明确的是:在这个问题中,我将在评论/子评论中对喜欢的调用分开,但实际上,我在一个调用中获得了所有数据,如下所示:

{page-id}/ratings?access_token={access-token}&fields=open_graph_story{comments{created_time,from,message,comments{created_time,from,message,like_count,user_likes},like_count,user_likes}},rating,review_text,created_time,reviewer
试一试
graph.facebook.com/open\u graph\u story\u id?fields=likes

应返回结构类似于以下内容的有效负载

{
"likes": {
"data": [
],
"can_like": true,
"count": 0,
"user_likes": false
 },
  "id": "open_graph_story_id"
}

这与他们在评论中公开喜欢的方式是如此不一致。。。不管怎样,谢谢。不用担心,开放式图表在最好的时候会让人感到困惑!
{
"likes": {
"data": [
],
"can_like": true,
"count": 0,
"user_likes": false
 },
  "id": "open_graph_story_id"
}