You will receive JSON
data using FQL query. Parse it and store it in Mutable Array
.
You can use the following query to obtain name
and id
of a user from his mailbox.
SELECT name, uid FROM user WHERE uid IN (SELECT author_id FROM message WHERE thread_id IN (SELECT thread_id FROM thread WHERE folder_id = 0))
Now the first index would be you. Remove it from the array if you want.