Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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)? 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.

like image 559
saj-and Avatar asked Dec 29 '11 20:12

saj-and


2 Answers

Yes, we can login directly facebook(facebook.com) with test user accounts.

Step 1

Create test user by clicking Add button

Add user screenshot

Step 2

Click Edit button where have all option

  • Change name
  • Set Password
  • Generate access token etc.

Edit user screenshot

like image 193
vinay mavi Avatar answered Nov 26 '22 06:11

vinay mavi


You can simply change the password of the Test User by issuing a POST request to this URL

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.

like image 30
Björn Kaiser Avatar answered Nov 26 '22 05:11

Björn Kaiser