How to get facebook page entire history in RSS XML

2019-06-09 11:02发布

问题:

I am trying to get an xml format for a facebook page but the problem is that it is limited to 29 items. To illustrate, say we go to https://www.facebook.com/barackobama and click the subscribe via rss https://www.facebook.com/feeds/page.php?id=6815841748&format=rss20 (bottom left). It open an xml document with only 29 items. I would like to get more, and perhaps the entire history if possible. Let me know if you have any thoughts.

Thanks in advance

回答1:

To get a full JSON feed, just use https://graph.facebook.com/cocacola/statuses?access_token=... (or /feed). You can set the limit querystring parameter to get more values and if you still reach the Facebook limit, there will be next and prev URL's in the response to retrieve more values. Try it with the graph explorer.