Receive wall posts made through my Facebook app using the FB API

I made a Facebook application that people use to exchange links from my web page to their walls, and now I need to return a list of messages made through it over a period of time (for example, from September 4 to September). 10), including their identifiers.

I know that I can save this information at the time of its publication, but I need old data that I did not save.

I tried using FQL, but this requires specifying source_id (the Facebook identifier on the user's wall where the message is located), which I can not know about.

The Graph API object for my application also does not help, since it has no connection for messages made through it.

Any help would be truly appreciated, even familiar in the right direction.

+5
source share
2 answers

As suggested, offer the user read permissions, and then I suggest taking the route fql:

 SELECT post_id, actor_id, target_id, message 
 FROM stream 
 WHERE attribution=[your app name] 
       AND created_time > [since]
       AND created_time < [until] 
       AND filter_key in (SELECT filter_key 
                          FROM stream_filter 
                          WHERE uid=me() AND type='newsfeed')

This is unlikely to be a problem, but keep in mind that there is a limit on the number of items returned, so if your time span is wide and your users are busy a lot, you may have to play with [until]and a [since]little more and make some calls for extracting everything.

, : http://developers.facebook.com/docs/reference/fql/stream/

+2

read_stream, /me/statuses .

0

All Articles