Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>You should try out cursor pagination, it's recommended as explained at <a href="https://developers.facebook.com/docs/reference/api/pagination/" rel="noreferrer">https://developers.facebook.com/docs/reference/api/pagination/</a></p> <blockquote> <p>Returned results under cursor paging more consistently match the limit requested, even after hiding any records for which you do not have permissions to view (eg. if you request 10 records, but do not have permissions to see 3 of those records, 3 additional records will be pulled transparently, so that a full 10 records are pulled).</p> </blockquote> <p>Example with post_id_cursor:</p> <pre><code>SELECT text, post_id, post_id_cursor FROM comment WHERE post_id='22707976849_10151395520781850' ORDER BY time DESC limit 50 </code></pre> <p>You get the post_id_cursor of the last comment, then navigate next page with <strong>>post_id_cursor</strong> symbol</p> <pre><code>SELECT text, post_id, post_id_cursor FROM comment WHERE post_id='22707976849_10151395520781850' AND post_id_cursor&gt;'Mjg3NA==' ORDER BY time DESC limit 50 </code></pre> <p>Example with object_id_cursor is same:</p> <pre><code>SELECT text, post_id, object_id_cursor FROM comment WHERE object_id='10151395520696850' ORDER BY time DESC limit 50 SELECT text, post_id, time, object_id_cursor FROM comment WHERE object_id='10151395520696850' AND object_id_cursor&gt;'Mjg3NA==' ORDER BY time DESC limit 50 </code></pre> <blockquote> <p><strong>Update:</strong></p> <p>Make sure you enabled "July 2013 Breaking Changes:" field at your app advanced settings, <a href="https://developers.facebook.com/apps/YOUR_APP_ID/advanced" rel="noreferrer">https://developers.facebook.com/apps/YOUR_APP_ID/advanced</a>. More info at <a href="https://developers.facebook.com/roadmap" rel="noreferrer">https://developers.facebook.com/roadmap</a></p> <p>Example of get feed for certain user:</p> <p><a href="https://developers.facebook.com/tools/explorer?fql=%7B%22query1%22%3A%22SELECT%20post_id%2C%20actor_id%2C%20created_time%2C%20message%20FROM%20stream%20WHERE%20source_id%3D611693239%20AND%20created_time%3C%3Dnow()%20LIMIT%2050%20%22%2C%22query2%22%3A%22SELECT%20post_id%2C%20id%2C%20fromid%2C%20time%2C%20text%2C%20user_likes%2C%20likes%20FROM%20comment%20WHERE%20post_id%20IN%20(SELECT%20post_id%20FROM%20%23query1)%20LIMIT%205%20%22%2C%22query3%22%3A%22SELECT%20id%2C%20name%2C%20pic_square%20FROM%20profile%20WHERE%20id%20IN%20(SELECT%20actor_id%20FROM%20%23query1)%20or%20id%20IN%20(SELECT%20fromid%20FROM%20%23query2)%22%7D%0A" rel="noreferrer">https://developers.facebook.com/tools/explorer?fql=%7B%22query1%22%3A%22SELECT%20post_id%2C%20actor_id%2C%20created_time%2C%20message%20FROM%20stream%20WHERE%20source_id%3D611693239%20AND%20created_time%3C%3Dnow()%20LIMIT%2050%20%22%2C%22query2%22%3A%22SELECT%20post_id%2C%20id%2C%20fromid%2C%20time%2C%20text%2C%20user_likes%2C%20likes%20FROM%20comment%20WHERE%20post_id%20IN%20(SELECT%20post_id%20FROM%20%23query1)%20LIMIT%205%20%22%2C%22query3%22%3A%22SELECT%20id%2C%20name%2C%20pic_square%20FROM%20profile%20WHERE%20id%20IN%20(SELECT%20actor_id%20FROM%20%23query1)%20or%20id%20IN%20(SELECT%20fromid%20FROM%20%23query2)%22%7D%0A</a></p> </blockquote>
 

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