How can I make my timeline with Graph API?

Zigfreid picture Zigfreid · May 15, 2013 · Viewed 8.3k times · Source

I've studied Facebook API for several hours, and googled lots of pages. But I can not find the way get posts list just like my timeline on Facebook app.

I would like to make a Web app that show my timeline posts just like Flipboard. I found an API to get my "story" and "my friends list". But I can not even imagine how to retrieve my friend post that shown on my timeline.

Is it impossible to replicate my timeline on my web app? Only Flipboard can do that? Do you have any hint?

Answer

providencemac picture providencemac · Sep 16, 2013

To access the current User's News Feed use the "User/Home" request as described in the API Documentation.

In order to gain access to the User's News Feed you will be required to gain the "read_stream" permission. For information on how to request the appropriate permission, read the Login, authorization and permissions section of the Getting Started guide.

The request to me/home will return an array of News Feed items, which are comprised of statuses, pictures, likes, etc. You can see an example of the result by using the Graph API Explorer.

Compare the results to your Timeline and they should be nearly identical (currently I believe Ads/Promoted Posts are excluded from the API)"