Facebook Graph API not giving any data before 2011?

I am the author of the Fazzle app on the iPhone. What my application does is basically download user status updates and sort them in different orders (for example, most liked it, most comments).

I was wondering if Facebook would be able to allow developers to receive user status updates from the day they joined Facebook, because when I launched the application, I can only receive user statuses from 2009. Today, I just discovered that Facebook has limited the use of the Graph API only since 2011.

I tried looking at the documentation, asked here , and contacted Facebook through my forum. However, there is still no such restriction in the Graph API. Did I miss something? Is there any other way to get data for status updates before 2011?

You can test it yourself here . Use this GET request:

https://graph.facebook.com/(your_user_id)/statuses?limit=99999 

Scroll down and you will find out that not everything is loaded.

Is it because of a conflict of interest with Facebook Timeline? If so, that sucks.

Logged as error here . Still hoping someone could point out my mistakes, if any.

+4
source share
3 answers

Absolutely, you can receive older messages from the Graph API; no limit (at least I don't know). Use the since and until parameters to return to previous results, instead of offset :

 https://graph.facebook.com/me/feed?access_token=[token]&until=1165474447 

The documentation for Paging is not very deep in since and until :

When requesting connections, there are several useful parameters that allow you to filter and view pages through connection data:

But basically, until like saying "Give me messages before this date," as well as "Give me messages from this date." This way you can scroll all the way back through the user feed using a loop, for example:

 // pseudocode timestamp = now do { posts = graph.get(/me/feed?until=timestamp) if posts.length == 0: break; // process posts timestamp = posts[0].created_time // first should be the oldest, in theory } while (1) 

Replace until with since and the oldest created_time , the newest one to go forward in time, for example. to capture any new messages since the last time the user launched the application.

+10
source

Facebook has since confirmed this as a mistake . If you have ever followed the Facebook bug tracker, unfortunately, this means that there is very little chance that they will really fix this.

+2
source

You will need to paginate. The restriction is limited. Please read http://developers.facebook.com/blog/post/478/

0
source

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


All Articles