How to use facebook test users from android

后端 未结 3 1522
广开言路
广开言路 2021-01-01 01:35

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 s

3条回答
  •  一个人的身影
    2021-01-01 01:59

    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

提交回复
热议问题