Facebook graph API allows to retrieve chat messages using "GET /me/outbox". Is there any way to retrieve the messages sent to/from a friend using graph API modifiers rather than parsing the entire array of messages.
Asked
Active
Viewed 3,301 times
0
-
I am looking for something like GET /me/outbox?from=
– user2012839 Apr 30 '13 at 01:16
2 Answers
0
As long as you have the thread_id, or the facebook thread id, then yes. Use /me/inbox or /me/outbox and select a specific id graph.facebook.com/messageid

phwd
- 19,975
- 5
- 50
- 78
-
I am trying to display the message exchange between a friend and me. I do not want to pull the entire list messages to show messages with just one friend. looking for something like GET /me/outbox?from=
– user2012839 Apr 30 '13 at 01:22
0
Using fql, just change the FRIEND_USER_ID:
SELECT author_id, body, created_time FROM message WHERE thread_id IN (SELECT thread_id FROM thread WHERE folder_id = 1 AND 'FRIEND_USER_ID' IN (recipients))
You can test with graph API explorer.

林果皞
- 7,539
- 3
- 55
- 70