Facebook Messenger Bot,测试用户,有没有人有这个工作? [英] Facebook Messenger Bot, test users, has anyone got this working?
问题描述
我们创建了一个FB信使机器人,可以用真实的FB帐户进行测试。但是,我们想通过开发者控制台/图表API创建2000个测试用户。
We've created an FB messenger bot and can test it fine with real FB accounts. But we would like to create 2000 test users via the developer console/graph api.
我遇到的问题是测试用户(通过API创建)看不到公开的网页。所以我以测试用户身份登录,创建了一个页面,很棒!测试用户可以看到其他测试用户创建的测试页面。但是现在我无法将机器人连接到该页面。
The problem I've come across is that, test users (created via the API) can't see public pages. So I logged in as the test users, created a page, and great! test users can see test pages created by other test users. But now I can't link my bot to that page.
有没有人设法让这个工作?我们为一家大型公司制造了一个机器人,他们希望尽可能多地发送测试人员。
Has anyone managed to get this working? We have made a bot for a large corp and they want to send as many testers at it as possible.
备份计划是创建真正的FB帐户并使用...
The backup plan is that I create real FB accounts and use those...
谢谢!
推荐答案
你必须手动链接您的测试用户创建的页面与您的机器人,为此,首先使用以下链接检索测试页ID:
You have to manually link your test user's created page with your bot, for that, first retrieve the test page ID 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>
(请参阅 https://developers.facebook.com/docs/messenger-platform/guides/setup#subscribe_app )
以下是详细的解决方法: https://developers.facebook.com / bugs / 230322797329131 /?hc_location = ufi
Here is the detailed workaround : https://developers.facebook.com/bugs/230322797329131/?hc_location=ufi
希望这有帮助!
这篇关于Facebook Messenger Bot,测试用户,有没有人有这个工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!