Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use facebook test users from android

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.

like image 996
Ashok Avatar asked Jan 24 '11 11:01

Ashok


People also ask

How do I become a Facebook test user?

To create a test account go to https://www.facebook.com/whitehat/accounts/ and select Create New account. You will be given a Name, User ID, Login email, and Login password.

How do I accept a test request on Facebook?

Go to the Dashoard and choose your app. Open Roles in the left-hand menu, and select Test User. Click Edit to the right of the test user for whose data you want to set the expiration period, and in the drop-down list choose Change data access expiration time.

What is a test user account?

Unlike Testers, who are real people who have been granted a Tester role on your app, test users are simulated Facebook user accounts that you can use to test your app's implementation of Facebook Login and any permissions or features your app uses.


1 Answers

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

like image 142
Jacek Milewski Avatar answered Oct 05 '22 20:10

Jacek Milewski