如何为 Facebook 应用程序分配测试用户帐户
我已经为 Facebook 中的一个应用程序创建了三个测试用户帐户。我应该如何将帐户分配给我的测试用户。我的意思是要打开测试用户帐户,我必须从应用程序仪表板打开它,然后按“切换到”。我想一定有一个更简单的方法。
I have created three test user accounts for an app in facebook. How should I distribute the accounts to my test users. I mean to open the test user account I have to open it from the app dashboard and press "Switch to". There must be a simpler way I suppose.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

您可以在此处以编程方式获取测试用户的登录网址列表:
https://graph.facebook.com/[app_id]/accounts/test-users?access_token=[app_access_token]
然后您可以解析 json 响应以保存用于登录的网址
https://developers.facebook.com/docs/test_users/
You can get a list of login urls for your test users programmatically here:
https://graph.facebook.com/[app_id]/accounts/test-users?access_token=[app_access_token]
Then you can parse the json response to save the urls for signing in
https://developers.facebook.com/docs/test_users/