The old developer on my facebook chatbot stopped working on the project and was removed from the ‘Admin’ role by another Admin.
Now, facebook returns:
{"statusCode":400,"id":"1234567","fbCode":190,"fbErrorSubcode":492,"fbMessage":"The user must be an administrator, editor, or moderator of the page in order to impersonate it. If the page business requires Two Factor Authentication, the user also needs to enable Two Factor Authentication."}
instead of replying to a user.
How do I resolve this?
Edit to add:I think this is mostly related to the PAGE_ACCESS_TOKEN variable. How do I change the PAGE_ACCESS_TOKEN that facebook creates for API use? The old(current) PAGE_ACCESS_TOKEN is linked to his account.
2
Answers
The key was to also remove the admin from the app admin role. This allowed the creation of a new PAGE_ACCESS_TOKEN that never expires.
The old dev must have been using his personal credentials for the chatbot, so when he was removed from the page as an admin, the service stopped letting his credentials access it for chatting.
You’ll need to get the app updated with different credentials.