Skip to content

Instantly share code, notes, and snippets.

View SeanSobey's full-sized avatar

Sean Sobey SeanSobey

  • SA HomeLoans
  • South Africa
View GitHub Profile
@soardex
soardex / gist:8a56f5856bff417a2c96ec1fd26906e5
Created March 25, 2017 14:16
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:
~~~
https://graph.facebook.com/v2.6/me/accounts?access_token=<TEST_USER_ACCESS_TOKEN>
~~~