JoshDG
JoshDG

Reputation: 3931

Facebook: Find old posts

I'm looking to find old facebook posts using FQL. I tried this:

SELECT actor_id, message, created_time FROM stream
 WHERE source_id = me() and (created_time>date1 and created_time<date2)

but even if the interval between date1 and date2 is only one day, it only returns a fraction of the posts. So, I tried chunking them, but even at 1 hour intervals it still doesn't quite get everything, and I quickly approach the 600 query limit for stream requests.

Is there a better way?

Upvotes: 2

Views: 1511

Answers (1)

Master Drools
Master Drools

Reputation: 738

Have you tried using Graph API? Something like this should help you out with pages: https://graph.facebook.com/PAGE_ID/feed?value=1&base_amount=1&limit=25&until=1332873234

To query your own posts the url is a bit different: https://graph.facebook.com/USER_ID/home?value=1&base_amount=1&limit=25&since=1344348794",

You can test Graph API queries here: https://developers.facebook.com/tools/explorer/?method=GET&path=40796308305%2Ffeed

Upvotes: 1

Related Questions