使用应用程序ID检索FQL的所有注释

Jim*_*son 23 app-id facebook-fql facebook-graph-api facebook-comments

我们使用facebook评论插件在我们的网站上发表评论.

为了缓和这些问题,我们使用此工具:https://developers.facebook.com/tools/comments

但是,我们希望构建自己的工具来调节这些注释,并将其集成到我们现有的软件中.

我找不到这样做的正确方法.我经过几个小时的研究后发现的唯一方法是这个FQL查询:

select post_fbid, fromid, object_id, text, time from comment where object_id in (select comments_fbid from link_stat where url ='URL_HERE')
Run Code Online (Sandbox Code Playgroud)

这不起作用,因为我们有数千个不同的URL,每次都无法查询每个URL,看看是否有任何新的评论.

我需要一种方法来获取所有(新)评论,只需输入我们的app_id,域或类似的东西

我怎样才能做到这一点?

Ole*_*leg 0

此代码查询您的应用程序使用的所有注释 xids:

https://graph.facebook.com/fql?q=SELECT fromid, text, id, time, username, xid, object_id FROM comment WHERE xid IN (SELECT xid FROM comments_info WHERE app_id = {0}) ORDER BY time desc&access_token={1}&format=json
Run Code Online (Sandbox Code Playgroud)

  • 对于新评论,这不起作用。FB:`注意:此表包含 app_id 到旧版 fb:comments 使用的 XID 的映射。它不包含当前评论插件的地图,该插件不使用 XID。` [链接](https://developers.facebook.com/docs/reference/fql/comments_info/) (4认同)