I have a question about the Graph API.
I use Javascript for the API and make a little test website ,where you can log in ,look for new messages and write a new status.
My problem is that I can't get the messages or the thread.
FB.api('/me/inbox',function(response) { alert(response.id); } ); don't work.
Have somebody an example for getting the messages in the inbox??
Thanks
The
/me/inbox
request requires that you have theread_mailbox
permission granted.Once you've got that, the
/me/inbox
request will return an array ofThread
's, which will look something like this;So depending which
ID
you're after, you'll have to do;Hopefully you get the idea...