Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>It's possible you get lastest facebook messages on top of thread(conversation session) by specific time with fql API, such as </p> <pre><code>SELECT snippet, recent_authors, updated_time FROM thread WHERE folder_id = 0 AND updated_time=1364564697 </code></pre> <p>Also, it's possible you get facebook message by specific time with API within thread. Such as</p> <pre><code>SELECT body, created_time FROM message WHERE thread_id=1774741570083 AND created_time=1348806942 </code></pre> <blockquote> <p>For your question. Yes. It's possible get facebook message from ALL inbox messages by specific DATE(by DATE, not by TIME, as your request). Example, get all inbox messages from <strong>"Thu Aug 23 2012 00:00:00 GMT+0800 (MYT)" to "Fri Aug 24 2012 00:00:00 GMT+0800 (MYT)"</strong></p> </blockquote> <pre><code>SELECT body, created_time FROM message WHERE thread_id IN (SELECT thread_id FROM thread WHERE folder_id = 0) AND (created_time&gt;=1345651200 AND created_time&lt;1345737600) </code></pre> <blockquote> <p><strong>Update</strong>:</p> <p>To retrieve sender name and profile photo, you can do </p> </blockquote> <pre><code>{"query1":"SELECT author_id, body, created_time FROM message WHERE thread_id IN (SELECT thread_id FROM thread WHERE folder_id = 0) AND (created_time&gt;=1345651200 AND created_time&lt;1345737600)","query2":"SELECT id, name, pic_square FROM profile WHERE id IN (SELECT author_id FROM #query1)"} </code></pre> <blockquote> <p><strong>Update</strong>: <strong>HTTP GET request</strong> example, quote the fql query, append to </p> <p><a href="https://graph.facebook.com/fql?format=json&amp;q=" rel="nofollow">https://graph.facebook.com/fql?format=json&amp;q=</a></p> <p>After that, append <strong>&amp;access_token=YOUR_USER_ACCESS_TOKEN</strong> at the end:</p> <p><a href="https://graph.facebook.com/fql?format=json&amp;q=%7B%22query1%22%3A%22SELECT+author_id%2C+body%2C+created_time+FROM+message+WHERE+thread_id+IN+%28SELECT+thread_id+FROM+thread+WHERE+folder_id+%3D+0%29+AND+%28created_time%3E%3D1345651200+AND+created_time%3C1345737600%29%22%2C%22query2%22%3A%22SELECT+id%2C+name%2C+pic_square+FROM+profile+WHERE+id+IN+%28SELECT+author_id+FROM+%23query1%29%22%7D&amp;access_token=" rel="nofollow">https://graph.facebook.com/fql?format=json&amp;q=%7B%22query1%22%3A%22SELECT+author_id%2C+body%2C+created_time+FROM+message+WHERE+thread_id+IN+%28SELECT+thread_id+FROM+thread+WHERE+folder_id+%3D+0%29+AND+%28created_time%3E%3D1345651200+AND+created_time%3C1345737600%29%22%2C%22query2%22%3A%22SELECT+id%2C+name%2C+pic_square+FROM+profile+WHERE+id+IN+%28SELECT+author_id+FROM+%23query1%29%22%7D&amp;access_token=</a><strong>ACCESS_TOKEN</strong></p> </blockquote>
    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. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      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