我想检索针对特定网址所做的评论或分享的文本、作者。 例如,我有以下目标:http://www.graphemeride.com/blog/comment-j-ai-triche-aux-golden-blog-awards
我可以检索评论和分享的数量 with FQL :
SELECT
url, share_count , comment_count, comments_fbid
FROM
link_stat
WHERE
url="http://www.graphemeride.com/blog/comment-j-ai-triche-aux-golden-blog-awards"
我得到以下结果:
{
"data": [
{
"url": "http://www.graphemeride.com/blog/comment-j-ai-triche-aux-golden-blog-awards",
"share_count": 27,
"comment_count": 26,
"comments_fbid": 357167807708699
}
]
}
我的计划是使用comment FQL查询retrieve the different comments .
SELECT
id, text
FROM
comment
WHERE
object_id="357167807708699"
但是我得到一个空的结果数据集。 我添加了所需的访问 token ,但我明白我只能获得有关此对象的评论,而不能获得公共(public)评论或分享。
是否有其他方法可以访问人们公开谈论的有关网址的内容?
最佳答案
link_stat
表中的评论计数是针对此链接的“SHARES”的评论数量,而不是针对该页面本身的评论插件的评论数量。
而 comments
表会返回该页面上评论插件的评论数量。
由于您的页面没有使用任何 Facebook 评论插件,因此您不会收到任何评论。
关于facebook - 如何检索特定 URL 的 FB 评论/分享,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23193613/