Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <pre class="lang-js prettyprint-override"><code>var fbid = your_fbuid_here; FB.api({ method: 'fql.query', query: 'SELECT thread_id, author_id, created_time FROM message WHERE thread_id IN (SELECT thread_id FROM thread WHERE folder_id = 0) AND author_id = ' + fbid + ' ORDER BY created_time ASC LIMIT 1' }, function ( threadresponse ) { FB.api({ method: 'fql.query', query: 'SELECT thread_id, body, author_id, created_time FROM message WHERE thread_id = ' + threadresponse[0].thread_id + ' ORDER BY created_time ASC' }, function ( inboxresponse ) { //do stuff here with results }); }); </code></pre> <p>or you can do this </p> <pre><code> var fbid =the _freind_fb_uid_here; FB.api({ method: 'fql.query', query: 'SELECT thread_id, body, author_id, created_time FROM message WHERE thread_id IN (SELECT thread_id FROM thread WHERE folder_id = 0) AND author_id = ' + fbid + ' ORDER BY created_time DESC' }, function ( threadresponse ) { //do stuff here with results }); </code></pre> <p><a href="/questions/tagged/facebook" class="post-tag" title="show questions tagged &#39;facebook&#39;" rel="tag">facebook</a><a href="/questions/tagged/facebook-fql" class="post-tag" title="show questions tagged &#39;facebook-fql&#39;" rel="tag">facebook-fql</a><a href="/questions/tagged/facebook-api" class="post-tag" title="show questions tagged &#39;facebook-api&#39;" rel="tag">facebook-api</a><a href="/questions/tagged/facebook-graph-api" class="post-tag" title="show questions tagged &#39;facebook-graph-api&#39;" rel="tag">facebook-graph-api</a><a href="/questions/tagged/facebook-fql-query" class="post-tag" title="show questions tagged &#39;facebook-fql-query&#39;" rel="tag">facebook-fql-query</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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