Tyson
Tyson

Reputation: 126

Facebook Email Messages - How to Retrieve with API

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

Answers (2)

Lix
Lix

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

ow3n
ow3n

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

Related Questions