[英]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.