How to use facebook users to test with Android

I need help using facebook test users with android. I use sdk for facebook android, and I need to be able to log in as a test user and perform actions similar to posting in a stream. I do not want to use the developer account associated with this application, as this is my personal account. I understand 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 this account or is it contrary to facebook policy.

+6
android facebook
source share
3 answers

Tested users can also be created using a graphical interface - not just API calls. A GUI is useful if you need to handle only a few users. If there are many, it’s easier to use the API and execute it programmatically.

How to handle test users using the FB GUI:

  • Go to the FB developer site where you created the FB application
  • in the application tab , click "Change Roles"
  • At the bottom of the page is the "Test users" section, which lists all test users. Here test users can be created and edited. Each user has the opportunity to log in as this user, change his name and set a password next to his profile photo.
  • You must set a password for the user to log in as he
  • Use your email address and your profile password to log in - it is also possible from your application.

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

If you need more information on this topic, see my article on user testing strategies . See details on the official page

+6
source share

Check out facebook's open bug . You cannot log in as a test user using your own Android application, but the login with m.facebook.com should work

+2
source share

https://graph.facebook.com/me?access_token=ACCESS_TOKEN

where access_token is the token when the user approved your application. Found here .

0
source share

All Articles