Android – How to use facebook test users from android

androidfacebook

I need help using the facebook test users from android.I am using the facebook android sdk and i need to be able to login as a test user and do actions like publish to the stream. I do not want to use the developer account associated with this application since it is my personal account. I realize that test users can only be created using api calls and such a call returns the login url, i understand how to use this in a browser but how can i use it in my android application. Can i create a dummy account and work with that account or is this against facebook policy.

Best Answer

Test users can also be created with GUI - not only by API calls. GUI is useful if You need to handle just few users. If there is a plenty of them - it is easier to use API and perform it programatically.

How to handle test users by FB GUI:

  1. Go to FB developer site, where You created FB Application
  2. on application tab, click Edit Roles
  3. At the bottom of the page there is 'Test users' section where all test users are listed. This is where test users can be created and edited. Each user has option to log in as this user, change his name and set password next to his profile photo.
  4. You have to set user's password to be able to login as him
  5. Use his profile email address and password to login - it is also possible from Your app

You can create a dummy account but this is against FB policy and FB really does everything to make it harder to You :) This is not an option. Use test users.

If more info is needed on the topic - see my article, regarding test users strategy. All the detail see on the official FB page