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 ) {
facebook facebook-fql facebook-api facebook-graph-api facebook-fql-query
Damien keitel
source share