Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>The request mentioned in cpilko's answer will get you the current user's Newsfeed (i.e. the equivalent of Graph API's /me/home). Therefore I don't think that answer should have been accepted.</p> <p>As for the current user's Timeline (i.e. the equivalent of Graph API's /me/feed): There is no easy way to get this with only one request because the Timeline contains different pieces of information:</p> <ul> <li>It contains status updates by the current user.</li> <li>It contains posts by other users that are targeted to the current user.</li> <li>It does NOT contain posts by the current user targeted to other users, events, etc.</li> <li>It does NOT contain stories by the current user that have neither a message text nor an attached photo, link, or place.*</li> </ul> <p>*: I'm not 100% sure on the last one because information on this is sketchy at best. There are different post types (a complete list of which I haven't seen yet), and there seems to be some kind of logic which types are shown on the Timeline and which are not. As I said, documentation is sketchy and it seems like Facebook doesn't want you to get exactly the same data as they do.</p> <p>Now to answer your question: If you're planning to offer a user's Timeline as part of your app experience, you should probably aim at a best-guess approach.</p> <p>Here is an example that I find comes pretty close (except that it doesn't get you posts of friends on your Timeline, but as I said: best-guess):</p> <blockquote> <pre><code>SELECT post_id, actor_id, target_id, description, message, attachment, type, permalink FROM stream WHERE source_id = me() AND is_hidden != "true" AND (type = 46 OR type = 60 OR type = 65 OR type = 80 OR type = 128 OR type = 247 OR type = 285 OR type = 373) LIMIT 100 </code></pre> </blockquote> <p>By the way, this is the most complete list of post types I have found so far: <a href="https://stackoverflow.com/questions/12243641/where-to-get-a-list-of-all-facebook-stream-posts-types">Where to get a list of ALL facebook stream posts types?</a></p> <p>Hope this helps, even though the answer admittedly isn't that encouraging. :)</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload