来自Graph API的Facebook帖子评论计数 [英] Facebook post comment count from Graph API
问题描述
2013年7月,Facebook从图形API的帖子中删除了评论计数.是否有另一种当前可行的方法来检索特定帖子的评论数量,而不必下载所有评论?谢谢.
In July 2013 Facebook removed the comment count from posts in the graph API. Is there an alternative, currently working way to retrieve the number of comments for a specific post, without having to download all of them? Thanks.
推荐答案
我不知道您的情况,因此无法为您提供确切的解决方案.但是获得评论计数的一种方法是使用 stream 表中获取评论href ="https://developers.facebook.com/docs/reference/fql" rel ="nofollow"> FQL .
Well i don't know your scenario, so can't help you with exact solution. but one way to get comments count is getting it from the stream table using FQL.
存在comment_info的结构,该结构提供了任何特定帖子的评论计数.
there is a structure of comment_info which gives the comment count for any specific post.
请参见下面的查询,例如:
see the query below for example:
Select type, post_id, description, likes,comment_info from stream WHERE source_id = "*post_id*"
将帖子ID放在子句中.
put the post id in the clause.
这篇关于来自Graph API的Facebook帖子评论计数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!