如何通过 FQL 和 Graph API 获取最近的活动故事?
我只想从 Facebook 收到消息,比如“Yanyang 和 Sina Sadegh 现在是朋友”,我看到 Piyush Mangalick 说“一些最近的 Activity 故事现在通过 FQL 和 Graph API 公开,这些故事以及故事中提到的人的标签现在可以通过链接“http://developers.facebook.com/blog/post/592/”中的 FQL 流表和 Graph API Post 对象获得“
但是当我检查流表时,我发现了该列到目前为止,Steam 表中不存在“story”或“story_tags”。它总是抛出“story不是流表的成员”,为什么?
虽然我使用 Graph API 获取 feed 'me/feed',但它只显示评论、喜欢和分享,没有像我想要的朋友关系或音乐信息。
如何通过 FQL 和 Graph API 获取最近的活动故事?
I just want to get message from facebook, like 'Yanyang and Sina Sadegh are now friends', I see Piyush Mangalick said "some recent Activity stories now exposed via FQL and Graph API and these stories, along with tags of people mentioned in the stories are now available through the FQL stream table and the Graph API Post object" in the link 'http://developers.facebook.com/blog/post/592/'
But while I check stream table, I found the column 'story' or 'story_tags' is not exist in steam table till now. It always throw 'stroy is not a member of the stream table', why?
And while I use Graph API to get feed 'me/feed', it just show the comments and likes and shares, no friends relation ship like I want or music info.
How could I get the recent activity stories via FQL and Graph API?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不想问一个愚蠢的问题,您是否在应用程序的高级设置中启用了迁移?
我刚刚尝试了
fql?q=select description, tagged_ids, message_tags from stream where source_id = me()
形式的 FQL 查询,其中包括“在照片中被标记”和其他类似的故事,如预期的Without wanting to ask a silly question, did you enable the migration in your app's advanced settings?
I just tried an FQL query of the form
fql?q=select description, tagged_ids, message_tags from stream where source_id = me()
and it's including 'was tagged in a photo' and other similar stories, as expected我遇到了类似的问题,但我通过使用
description
字段而不是story
来纠正它。似乎
description
是 FQL 中的适当字段,而story
是 Graph API 中的相应字段。I had a similar issue, but I corrected it using by using the
description
field instead ofstory
.It seems that
description
is the appropriate field in FQL andstory
is the corresponding field in the Graph API.