Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to get a message unknown recipients email or name instead of 0 with facebook fql?
    primarykey
    data
    text
    <p>How to get a message unknown recipients email or name instead of 0 with facebook fql?</p> <p>I wrote some php code to export the messages in my facebook mailbox. I am using FQL.</p> <p>this is the flq multiquery I use in the <a href="http://developers.facebook.com/tools/explorer/" rel="nofollow">API tool explorer</a> to get a given message, with full message and recipients data.</p> <pre> { "threads": "SELECT thread_id FROM thread WHERE folder_id IN (0,1,4)", "messages": "SELECT thread_id, message_id, author_id, created_time, body FROM message where thread_id IN ( SELECT thread_id FROM #threads) and message_id='249...' ORDER BY created_time ASC", "recipients_id": "SELECT thread_id,recipients FROM thread WHERE thread_id IN (SELECT thread_id FROM #messages)", "recipients": "SELECT uid, username, name, email, profile_url, pic FROM user WHERE uid IN (SELECT recipients FROM #recipients_id)" } </pre> <p>Here is what I get:</p> <pre> { "name": "recipients_id", "fql_result_set": [ { "thread_id": "26854010378569", "recipients": [ 4735804651, 0, 0 ] } ] } </pre> <p>As I prior sent this test message from a classic email client to my facebook address, I know who is the sender of this message. 4735804651 is my facebook ID, the last two values (zero) in the recipient field refer to the sender and another facebook user which is not my friend. In the original email I sent, I put my @facebook.com email and another @m.facebook.com user email Everybody received the message. When I read it from the FB interface and fly over the sender name, I can see the sender email address. How can I get it through facebook api or FQL?</p> <p>thanks.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    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