有没有API来检索Facebook近期活动? [英] Is there an API to retrieve Facebook recent activity?

查看:85
本文介绍了有没有API来检索Facebook近期活动?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道有一个Graph API可以获取最近的墙上信息:

  https://graph.facebook.com / me / feed?access_token = ... 

但是如何获取最近的活动?有什么办法吗FQL(不是Graph API)也可以工作。我真的不在乎哪种方式得到它。



我试图获得作为墙壁一部分的最近活动。它具有与标准墙条目相同的ID,但是它们不会在 / me / feed 请求中返回,因为它们在Facebook上被对待不同,我试图找出一个简单的方式来让他们像 / me / feed

解决方案

没有一个单个社交插件或一个单一 API端点,它提供了您正在描述的内容,但您可以做的是订阅实时更新,请查看此处的文档:


$ b

使用此界面,您可以订阅用户的朋友更改的更新,例如发送POST请求到:


graph.facebook.com/ [app-id] / subscriptions?access_token = ...& object = user& fields = user $ callback_url = ...


正如文档说明,并不是所有内容都可以通过实时更新,但希望这可以让您与您正在寻找的功能非常接近。


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

解决方案

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:

https://developers.facebook.com/docs/reference/api/realtime/

Using this interface you could subscribe to updates for when a user's friends change for example by sending a POST request to:

graph.facebook.com/[app-id]/subscriptions?access_token=...&object=user&fields=user$callback_url=...

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.

这篇关于有没有API来检索Facebook近期活动?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆