Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

get request to me/inbox misses first message of the conversation

I am using Graph API of facebook to read user's messages.

https://developers.facebook.com/tools/explorer?method=GET&path=me%2Finbox

To get the access token, I have selected 'read_mailbox' permission.

On submitting the request, I get the response as JSON string, but the response does not contain first message of the conversation.

What am I missing?

Thanks and Regards,

Arjabh

like image 747
arjabh Avatar asked Dec 21 '25 06:12

arjabh


1 Answers

You missed nothing. The Facebook Graph API returns a thread with all messages. You will need read the parameter "unread" and after parse the JSON content, get the last X ("unread") messages of the thread. They are the unread messages.

like image 146
Luiz Cajueiro Avatar answered Dec 22 '25 20:12

Luiz Cajueiro



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!