如何通过Facebook API获得新闻源? [英] how to get past newsfeed using facebook API?

查看:331
本文介绍了如何通过Facebook API获得新闻源?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

获取新闻源的API是: https://graph.facebook.com/me/ home?access_token = & limit = 1000& untill =

the API to fetch newsfeed is: https://graph.facebook.com/me/home?access_token=&limit=1000&untill=

它返回分页的Feed输出与'next'url以获取以前的Feed。

which returns paginated feed output with 'next' url to fetch previous feeds.

然而,它停止在一段时间之后返回newsfeed。所以几天的新闻稿只能用于解析。

However it stops returning newsfeed beyond a certain time. So newsfeed of few days is only available for parsing.

有没有办法通过facebook apis获得更多的历史新闻源?

Is there a way out to get more historical newsfeed using facebook apis???

推荐答案

如果您查看图形API文档页面 / me / home 仅限于1-2周的历史记录,并且已经落入我们不在乎这个类别:

If you look at the graph API documentation page, /me/home is limited to only 1-2 weeks of history, and it has fallen into the "we don't care about this" category:


/ me / home 检索过时的新闻视图饲料。这是目前一个已知的问题,我们没有任何近期的计划,使他们恢复平等。

/me/home retrieves an outdated view of the News Feed. This is currently a known issue and we don't have any near term plans to bring them back up into parity.

使用 / me / feed

您可以使用,因为直到参数从用户的Feed获取历史数据。这将让你发表在2012年8月15日至20日之间的帖子。

You can use the since and until parameters to get historical data from a user's feed. This will get you the posts that appeared between August 15-20, 2012.

/me/feed?since=2012-08-15&until=2012-08-20

/我/ feed / 也受到限制。限制没有明确说明,但我从来没有希望能够从一个API通话中访问价值超过30天的帖子。

The data returned by /me/feed/ is also limited. The limits aren't explicitly stated, but I never expect to be able to access more than 30 days worth of posts from one API call.

这篇关于如何通过Facebook API获得新闻源?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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