Time for action – requesting data based on date

What was happening around March, 2009, on the Facebook Page? If you look at the actual page (http://facebook.com/facebook), you'll have to click on Older posts a lot of times to get back that far.

With the Graph API it's easy. We just use the until parameter:

https://graph.facebook.com/facebook/feed?until=31march2009

A sample of the JSON returned is shown in the following code:

{ "data": [ { "id": "[redacted]", "from": { "name": "[redacted]", "id": "[redacted]" }, "to": { "data": [ { "name": "Facebook", "category": "Technology", "id": "20531316728" } ] }, "message": "[redacted]", "type": "status", "created_time": "2008-01-21T15:42:11+0000", "updated_time": "2009-05-31T21:26:30+0000", "likes": 2, } ] ...

Get Facebook Graph API Development with Flash now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.