How to receive messages for a specific user through FQL or the GRAPH API?

I would like to receive all messages from https://graph.facebook.com/me/inbox or through FQL for a specific user, for example: "All messages from the user and with user ID: 123456789"

Will I be possible with a multi-user FQL query?

+7
source share
2 answers
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 }); }); 

facebook-fql-query

+3
source

Will I be possible with a multi-user FQL query?

Yes, it is possible when the inbox belongs to the authenticated user of the application with the appropriate permissions.

+1
source

All Articles