[英]Get all the post that a Page is Tagged in using FQL Stream table
Is there a way to get all the Posts that a Page is tagged in using the stream table in FQL? 有没有一种方法可以使用FQL中的流表来获取所有已标记页面的帖子? Apparently the only indexed column is source_id but i can only use it to get the posts that where created ON the Page.
显然,唯一索引的列是source_id,但我只能使用它来获取在页面上创建的帖子。 But what with posts that were created on a User timeline but tagged with the Page?
但是,在用户时间轴上创建但带有页面标记的帖子该怎么办?
If there is no way of doing it with FQL. 如果无法用FQL做到这一点。 Then, there is a way of doing it with the Graph API using the Tagged connection of the Page object.
然后,有一种方法可以通过Page对象的Tagged连接使用Graph API。 BUT, how can i filter between dates with the graph API?
但是,如何使用图表API在日期之间进行过滤? like get all posts from a connection stream where updated_date is between x and y?
像从连接流中获取所有帖子,其中update_date在x和y之间?
Thanks! 谢谢!
post_id is also an indexed field. post_id也是一个索引字段。 You can use subqueries or joins to get this information from the stream_tag table
您可以使用子查询或联接从stream_tag表中获取此信息
SELECT message FROM stream WHERE post_id IN (SELECT post_id FROM stream_tag WHERE target_id = me()) AND updated_time > LAST_TIME_YOU_CHECKED
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.