I'm upgrading our application from Marketing API v2.2 to work with v2.3. In v2.2 everything worked fine, but in v2.3 when I try to post unpublished post (with the same user) I get the following error:
(OAuthException - #200) (#200) The user hasn't authorized the application to perform this action
I use the page access token with the following permissions: read_stream, read_page_mailboxes, rsvp_event, ads_management, ads_read, read_insights, manage_notifications, manage_pages, publish_actions
I also tried to post with the user's accessToken but it didn't work either.
Adding an answer to reflect my comments on the question
In the case where trying to create a Post on a Page is failing with
(#200) The user hasn't authorized the application to perform this action
the most likely reason is that the exception text is accurate -If you have reason to believe otherwise, you must verify that you have the correct permissions:
publish_actions
(if posting to Pages using Graph API v2.2 and below),publish_pages
(if posting to Pages in Graph API v2.3 and above)manage_pages
(needed to act as a page and change page settings)}You'll need to check that on the
Status & Review
tab of your app's app dashboard your app submitted use of those permissions for review and was approved for use of those permissions, and that the user whose token you're using granted those permissions to your appYou may also need to verify that the user whose token you're using has permission to post on the page, but since most posts to pages via the API are done as the page (using a Page Access Token) that's less likely to be the issue