来自Graph API的Facebook帖子评论计数

编程入门 行业动态 更新时间:2024-10-27 12:36:56
本文介绍了来自Graph API的Facebook帖子评论计数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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 ="developers.facebook/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帖子评论计数

本文发布于:2023-10-23 08:20:58,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1520298.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:帖子   Graph   API   Facebook

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!