我怎样才能让我的所有帖子给其他人,而不是我的时间表? [英] How can I get all my posts to other people, not to my timeline?
问题描述
我如何能得到,使用Facebook的图形API,我的所有帖子给其他人,而不是我的时间表?
我试图用我/职位,但我得到的所有我的帖子,包括我的时间表,我不能分开吧。
How can i get, using Facebook Graph Api, all my posts to other people, not to my timeline? I'm trying to use me/posts , but i get all my posts including to my timeline, and i couldn't separate it
推荐答案
使用Facebook FQL API:
Using Facebook FQL API:
选择POST_ID,CREATED_TIME,描述,description_tags,APP_ID,
消息类型,从CREATED_TIME WHERE流= SOURCE_ID我()和
comment_info.can_comment!=''AND actor_id =我()和永久=AND
CREATED_TIME< = NOW()LIMIT 150
SELECT post_id, created_time, description, description_tags, app_id, message, type, created_time FROM stream WHERE source_id=me() AND comment_info.can_comment!='' AND actor_id=me() AND permalink="" AND created_time<=now() LIMIT 150
唯一的问题是这个查询不会在的 https://developers.facebook.com/bugs/148353975327544 。然而,这FQL查询应该完美。请让我知道如果你想出什么毛病此查询。
The only problem is this query doesn't return "Upload photo on friends wall"'s post, because of this unresolved bug at https://developers.facebook.com/bugs/148353975327544. However, this FQL query should works perfectly. Kindly let me know if you're figure out something wrong with this query.
此外,请确保您的用户访问令牌授予 read_stream 权限。
Also, please make sure your user access token have granted "read_stream" permission.
- comment_info.can_comment!=''用于排除饲料的故事在朋友的状态注释。
- 永久=用于排除Lim和林果现在皞是朋友。或人们改变了他的个人资料图片,林果皞创建的活动。...等。您可以测试是否删除此会发生什么。
- comment_info.can_comment!='' used to exclude "Comment on friend's Status" story feed.
- permalink="" used to exclude "Lim and 林果皞 are now friends." or "People changed his profile picture.", "林果皞 created an event."...etc. You can test what would happen if remove this.
更新下面的评论:
我觉得你可以做的是这是0,例如我的截图,ID为100003013144869无从下手description_tags提取ID:
I think what you can do is extract the id from description_tags which was no start with "0", for example my screenshot, id "100003013144869":
此外,提取CREATED_TIME,例如:1368624514
Also, extract the created_time, for example "1368624514"
然后,做一个查询有:
选择POST_ID FROM流WHERE SOURCE_ID ='100003013144869'AND
actor_id =我()和CREATED_TIME = 1368624514
SELECT post_id FROM stream WHERE source_id='100003013144869' AND actor_id=me() AND created_time=1368624514
我知道这不是绝对准确(如2饲料对秒的相同CREATED_TIME),但最有可能的,你可以让你的工作做好。
I'm know it's not absolutely accurate(If 2 feed have the same created_time on seconds), however most likely you can make your job done.
这篇关于我怎样才能让我的所有帖子给其他人,而不是我的时间表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!