facebookfacebook-graph-apifacebook-messages

Facebook private_replies returns (#200) The page does not have READ_PAGE_MAILBOXES or PAGES_MESSAGING permission


Dears,

I'm an admin on some facebook page, and I need to use "private_replies" on posts comments. My user token has all permissions (including READ_PAGE_MAILBOXES and PAGES_MESSAGING) but when I try to use private replies on some comment I got this error:

"message": "(#200) The page does not have READ_PAGE_MAILBOXES or PAGES_MESSAGING permission."

My application still in development, and Facebook rejected the review submission for "Messenger" product in my application.

What is the required permissions to allow send "private_replies" in case I am the admin of both application and page, and how do I got those permissions ?

Last Update:

Hi, I followed this link: Facebook Page Access Token with read_page_mailboxes permission

And used PHP code this time and I invoked the function "

$helper->getLogUrl

" with permissions

['read_page_mailboxes, pages_messaging']

I can access all posts and comments on posts, but the I got the same error when try tom invoke:

$fb->post('/49827_COMMENT_17616_49888_ID_3923669/private_replies',$params,$accessToken);

Error: (#200) The page does not have READ_PAGE_MAILBOXES or PAGES_MESSAGING permission.

While I'm the admin of the page (admin but not owner) and the owner of the application, and while I can get all comments, why still unable to send private replies ?

Best regards


Solution

  • Don't ask me how but it works !

    The page access token was not appear (and still) in my pages access token for my current application, while I can see all pages in my Facebook account, I guess because I become an admin on page after creating the application, it look like a bug !

    I made new Facebook application, the pages access token become visible and I used the page token (not user token) to send private_replies and it works