我正在尝试使用FQL获取没有照片和视频的Facebook新闻源,我已经使用此代码获取包含照片和视频的整个新闻源。
这是FQL代码
SELECT attachment FROM stream WHERE filter_key in (SELECT filter_key FROM stream_filter WHERE uid=me() AND type='newsfeed')AND is_hidden = 0 ORDER BY created_time ASC LIMIT 300
我应该在此代码中添加什么才能在没有新闻Feed的情况下获取帖子?
答案 0 :(得分:1)
检查https://developers.facebook.com/docs/reference/fql/stream/
上流表的文档您可以使用类型字段指定您想要查看的帖子类型
The type of this story. Possible values are:
11 - Group created
12 - Event created
46 - Status update
56 - Post on wall from another user
66 - Note created
80 - Link posted
128 -Video posted
247 - Photos posted
237 - App story
257 - Comment created
272 - App story
285 - Checkin to a place
308 - Post in Group
像这样
SELECT attachment FROM stream WHERE filter_key in (SELECT filter_key FROM stream_filter WHERE uid=me() AND type='newsfeed') AND is_hidden = 0 AND type IN (80,237,257,272,285) ORDER BY created_time ASC LIMIT 300