通过图谱API

时间:2018-01-26 17:05:21

标签: facebook facebook-graph-api

我正在尝试从Graph API检索一些评论数据,包括评论,子评论等。

我可以使用带有以下参数的端点获得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?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

1 个答案:

答案 0 :(得分:1)

tinymce.activeEditor.getContent()

应返回类似于以下

的有效负载
graph.facebook.com/open_graph_story_id?fields=likes