Reputation: 126
If someone sends me a note using the facebook email feature ([email protected]), how do you get this message using the API? Is it possible? I can see it in my Private Messages, but it doesn't seem to be coming over when I use FQL to query that table. Is it possible to get these messages?
Upvotes: 3
Views: 268
Reputation: 47966
You need to request the read_mailbox
permission from the user. With this permission you will be able to access the messages in the users inbox.
You can read more about facebook permissions at this link.
Upvotes: 1
Reputation: 6597
You can use the Graph API to do this:
$data = $facebook->api('/me/inbox');
Check out: http://developers.facebook.com/tools/explorer/?method=GET&path=me%2Finbox
Upvotes: 1