Facebook Messenger Bot, testing users, did anyone get this job?

We have created an FB messenger bot and we can verify it with real FB accounts. But we would like to create 2000 test users through the developer console / chart api.

The problem I ran into is that test users (created through the API) cannot see public pages. So I logged in as test users, created a page, and great! test users can see test pages created by other test users. But now I can not associate my bot with this page.

Has anyone managed to get this to work? We made a bot for a large body, and they want to send as many testers to it as possible.

The backup plan is that I create real FB accounts and use them ...

Thanks!

+5
facebook facebook-graph-api facebook-messenger facebook-messenger-bot
source share
1 answer

You need to manually link the page created by your test user with your bot, for this first get the ID of the test page using the following link:

https://graph.facebook.com/v2.6/me/accounts?access_token=<TEST_USER_ACCESS_TOKEN> 

Then use the page token to link your bot using:

 https://graph.facebook.com/v2.6/me/subscribed_apps?method=POST&access_token=<TEST_USER_PAGE_ACCESS_TOKEN> 

(see https://developers.facebook.com/docs/messenger-platform/guides/setup#subscribe_app )

Here is a detailed workaround: https://developers.facebook.com/bugs/230322797329131/?hc_location=ufi

Hope this helps!

+7
source share

All Articles