简体   繁体   English

如何使用FaceBook测试用户登录(从facebook开发者应用程序角色页面创建)

[英]How to login using FaceBook test users (created from the facebook developer app roles page)

Is it possible to login to facebook directly (facebook.com) using the test user account created using the Facebook Developer app feature (Roles / Create test users)? 是否可以使用使用Facebook Developer应用程序功能(角色/创建测试用户)创建的测试用户帐户直接登录facebook(facebook.com)? What password should I use? 我应该使用什么密码? I understand we can use the "Switch to " option after logging in as myself to facebook, but I want to be able to login directly using the test user accounts, so that I can provide these user details for other testers who do need to use their personal facebook account in any way related to the testing of the application. 我知道我自己登录Facebook后可以使用“切换到”选项,但我希望能够使用测试用户帐户直接登录,以便我可以为需要使用的其他测试人员提供这些用户详细信息他们的个人Facebook帐户以任何方式与应用程序的测试相关。

Yes, we can login directly facebook(facebook.com) with test user accounts. 是的,我们可以使用测试用户帐户直接登录facebook(facebook.com)。

Step 1 步骤1

Create test user by clicking Add button 单击“ 添加”按钮创建测试用户

添加用户截图

Step 2 第2步

Click Edit button where have all option 单击编辑按钮,其中包含所有选项

  • Change name 更换名字
  • Set Password 设置密码
  • Generate access token etc. 生成访问令牌等

编辑用户截图

You can simply change the password of the Test User by issuing a POST request to this URL 您只需通过向此URL发出POST请求即可更改测试用户的密码

https://graph.facebook.com/TEST_USER_ID?password=NEW_PASSWORD&name=NEW_NAME&method=post&access_token=APP_ACCESS_TOKEN

Then you can give other people the account info of that user with the newly set password and they can log in to Facebook as that user. 然后,您可以使用新设置的密码向其他人提供该用户的帐户信息,他们可以以该用户身份登录Facebook。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM