问题描述
我们使用 facebook 评论插件在我们的网站上发表评论.
We use the facebook comment plugin to have comments on our site.
为了管理这些,我们使用这个工具:https://developers.facebook.com/tools/comments
To moderate those, we use this tool: https://developers.facebook.com/tools/comments
但是,我们希望构建自己的工具来审核这些评论,并将其集成到我们现有的软件中.
However, we want to build our own tool to moderate those comments, and integrate it to our existing software.
我找不到这样做的正确方法.经过数小时的研究,我现在发现的唯一方法是这个 FQL 查询:
I can't find a proper way of doing this. the only way I found out now after hours of research is this FQL query:
select post_fbid, fromid, object_id, text, time from comment where object_id in (select comments_fbid from link_stat where url ='URL_HERE')
这行不通,因为我们有数千个不同的 URL,我无法每次都查询每个 URL 以查看是否有任何新评论.
That doesn't work because we have thousands of different URL's and I cant query each of them every time to see if there are any new comments.
我需要一种方法来获取所有(新)评论,只需输入我们的 app_id、域或类似内容
I need a way to get all (new) comments by just enter our app_id, domain or something like that
我该怎么做?
推荐答案
我正在考虑做同样的事情 - 为我的应用程序抓取所有用户帖子.我假设这是一个类似的任务.
I'm considering doing the same thing- grabbing all user posts for my application. I'm assuming it's a similar task.
对于给定的用户,我将滚动浏览提要和主页以查找应用帖子.对你来说,你会去:
For given user, I will scroll through feed and home looking for app posts. For you, you'd go:
`home?fields=comments`
`feed?fields=comments`
并检查type"和id"以匹配您的应用程序.
And check for "type" and "id" to match your application.
这篇关于通过应用程序 ID 使用 FQL 检索所有评论的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!