Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Use Test User To Test Messenger Bot
To get it to work please follow the steps:
1) Create test user by toggling the Authorize test users for this app and grant permissions "manage_pages" and "page_messaging".
2) Use the Edit Button and get an access token for this user (using v2.6). Please save this for later.
3) Use edit button to login as the test user
4) After login, create page as the test user
5) Use the user access token for the test user to get the page access token for this user. You can do this with the following call:
6) Use this page access token to link your Facebook Application with your Page.
7) After you have followed these steps you will receive RTU updates to your Test Page and be able to message your Test User from your Test Page.
In addition to the above you can replace your access token with a long-lived token if they are expiring too quickly for your tests. Please follow the documentation here:
GET /oauth/access_token?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment