How to get news using facebook API?

News extraction API: https://graph.facebook.com/me/home?access_token= & limit = 1000 & untill =

which returns paginated output using the "next" url to retrieve previous feeds.

However, he stops returning the news feed for a certain amount of time. Thus, the news feed for several days is available only for parsing.

Is there any way to get more historical news using facebook apis ???

+4
source share
1 answer

If you look at the chart page of the GUI API document , /me/home limited to only 1-2 weeks of history, and it fell into the β€œwe don't care about it” category:

/me/home retrieves an obsolete feed. This is currently a known issue, and we have no plans for the near future to return them to parity.

Use /me/feed instead.

You can use the since and until parameters to retrieve historical data from a custom feed. This will give you messages that appeared between August 15-20, 2012.

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

The data returned by /me/feed/ is also limited. The limits are not explicitly stated, but I never expect you to be able to access messages in more than 30 days from a single API call.

+4
source

Source: https://habr.com/ru/post/1437592/


All Articles