简体   繁体   English

如何查询Facebook用户发布的所有评论?

[英]How can I query for all the Comments posted by a Facebook user?

换句话说,对于任何给定的Facebook用户,我如何针对任意数量的URL(在查询时未知)检索所有公共评论?

You can't query comments by user id alone. 您不能仅通过用户ID查询评论。 As you can see from the FQL Comment table, fromid (ie the user submitting a comment) is not indexable. FQL评论表中可以看到, fromid (即用户提交评论)不可索引。 To query Comments you would require atleast one of the following which could be used in conjunction with fromid : 要查询注释,您至少需要将以下一项与fromid结合使用:

xid The external ID of the fb:comments being queried. xid正在查询的fb:comments的外部ID。 You can specify more than one XID. 您可以指定多个XID。

object_id The object_id of an object on Facebook. object_id Facebook上的对象的object_id。 This can be a video, note, link, photo, or photo album. 这可以是视频,注释,链接,照片或相册。 Note that for photos and albums, the object_id must be queried from the photo and album FQL tables. 请注意,对于照片和相册,必须从照片和相册FQL表中查询object_id。 Note that in the photo and album tables, object_id is a different field from pid and aid. 请注意,在照片和相册表中,object_id是与pid和aid不同的字段。 You must specify either an xid or an object_id. 您必须指定xid或object_id。

post_id The ID of the post in the stream. post_id流中帖子的ID。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何审核我网站上发布的Facebook评论? - How can I moderate Facebook comments posted in my website? 如何获取在 Facebook 群组中发帖的用户? - How can I get the user who posted in a Facebook group? 如何追踪在 Facebook 中发布的链接? - How can I trace for a link posted in Facebook? 如何收到通过 Facebook 评论社交插件发布的评论的通知 - How to be notified of comments posted via the Facebook Comments Social Plugin Facebook评论| 发表评论之前,我该如何审查 - Facebook comments | how can i review comments before they get published 我怎样才能在Facebook fb中评论评论:评论社交插件? - How can I moderate comments in the Facebook fb:comments social plugin? ios slcomposeviewcontroller与facebook-如何获取发布的图像ID? - ios slcomposeviewcontroller with facebook - How can I get the posted image id? 我如何阅读在MVC应用程序中为Facebook页面输入的用户评论 - how can I read the user comments entered for a Facebook page in a MVC application 如何获得所有评论,添加到我在Facebook上的网站的共享链接中? - How can I get all the comments, added to shared link of my website on Facebook? 如何在带有graph api facebook的页面帖子的所有评论中按消息过滤? - How can I filter by message in all comments of a page post with graph api facebook?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM