是否有 API 可以检索 Facebook 最近的活动?
我知道有一个 Graph api url 用于获取最近的墙源:
https://graph.facebook.com/me/feed?access_token=...
但是如何获取最近的活动?有什么办法吗? FQL(不是图形 API)也可以工作。我真的不在乎我以哪种方式得到它。
我正在尝试获取最近的活动,它显示为墙的一部分。它具有与标准墙条目相同的 ID,但它们不会在 /me/feed
请求中返回,因为它们在 facebook 上的处理方式不同,我正在尝试找出一个简单的方法获取它们的方法就像 /me/feed
I know there's a Graph api url for getting the recent wall feeds:
https://graph.facebook.com/me/feed?access_token=...
But how do I get the Recent Activity? Is there any way? FQL (not Graph API) can work too. I don't really care which way I get it.
I'm trying to get the RECENT ACTIVITY, which appears as part of the wall. It has same IDs like the standard wall entries have, but they aren't returned in the /me/feed
request, because they are treated differently on facebook, and I'm trying to find out a simple way to get them just like /me/feed
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
没有单个社交插件或单个 API端点可以准确提供您所描述的内容,但您可以做的是订阅实时更新,请在此处查看相关文档:
使用此界面当用户的朋友发生变化时,您可以订阅更新,例如通过发送 POST 请求到:
正如文档所述,并非所有内容都可用通过实时更新,但希望这能让您非常接近您正在寻找的功能。
There isn't a single social plugin or a single API endpoint that provides exactly what you are describing, but what you can do is subscribe to Real-time Updates, check out the docs on it here:
Using this interface you could subscribe to updates for when a user's friends change for example by sending a POST request to:
As the documentations notes, not everything is available via Real-time Updates, but hopefully this gets you pretty close to the functionality that you are looking for.
是的。阅读 Facebook 的帖子:最近的 Activity 故事现已通过 FQL 和 Graph API 公开。
Yes. Read Facebook's post: Recent Activity stories now exposed via FQL and Graph API.
您是否正在寻找类似于 Facebook 本身在“通知”中显示的内容此 FQL 查询应该可以解决问题。
可用字段列表位于此处。
我喜欢使用 Chrome 控制台来探索 Facebook 返回的数据结构,即“console.log”调用。显然,您需要提供自己的回调...
请注意,从 10 月份开始,这将需要特殊权限(“manage_notifications”),如 此处概述。
Are you looking for something like what Facebook itself displays in the "notifications" This FQL query should do the trick.
A list of available fields is here.
I like to use the Chrome console to explore the data structures that Facebook returns, thus the "console.log" call. Obviously you will need to provide your own callback...
Note that this will require a special permission ("manage_notifications") starting in October as outlined here.
您可以使用用户/家庭边缘。
https://developers.facebook.com/docs/graph -api/reference/v2.3/user/home
You can use the user/home edge.
https://developers.facebook.com/docs/graph-api/reference/v2.3/user/home
活动源社交插件怎么样: http://developers.facebook.com/docs/参考/插件/活动/
What about the Activity Feed social plugin: http://developers.facebook.com/docs/reference/plugins/activity/