Search code examples
facebookfacebook-graph-api

error OAuthException "message": "mailbox requires the read_mailbox extended permission."


I am getting this error while trying to access Facebook Graph api mailbox

https://graph.facebook.com/me/inbox?access_token=<access_token> 


"error": {
      "type": "OAuthException",
      "message": "mailbox requires the read_mailbox extended permission."

The access token is valid.. But any hints on the permissions and where I am going wrong.. First, on logging in to Fb, it gives me a code and then access_token

Thanks for your help.


Solution

  • You need to grant your application the read_mailbox permission.

    https://developers.facebook.com/docs/authentication/permissions/

    Information on how you do that can be found here:

    https://developers.facebook.com/docs/authentication/