A test user is a special Facebook account, invisible to real accounts, which can be created within an app for the purpose of manual or automated testing of that app's Facebook integration.
We ensure that test users are exempt from our spam and fake account detection systems so that you can test your app without worrying about getting disabled.
You can create, access and delete test user accounts in a couple of ways - by using the Graph API to do it programmatically, or by using the App Dashboard to do it manually.
/app/accounts/test-users/ Graph API edge can be used to:
/test-user Graph API node can be used to:
Read the linked Graph API reference docs to see how those APIs should be used.
The App Dashboard provides an interface to perform many of the tasks you'll want to be able to do with test users:
However, if you want to associate, and disassociate, existing test accounts with other apps you will need to use the Graph API as shown above.
The interface for management is relatively simple, but we'll show you how to use it below.
Open the App Dashboard and choose the app that you want to manage test accounts for. Select Roles then Test Users from the left hand side menu.
The Test Users panel displays a list of test users with names, user IDs, and email addresses associated with this app. You can use these users to login into the test account. The
Open Graph Test User is automatically created for any app and is used by our app review team during the Open Graph submission process.
Click on the Add button to create a new test user. You'll then be prompted with a dialog that has a few options:
Once you've chosen your options, click the Create Test Users button and after a few seconds the new account will be created and appear in the test user list.
You can use the checkboxes in the left column of the Test User screen to pick a number of test accounts, and then click the Delete button to delete those accounts. This process cannot be undone, so be sure you want to actually delete the account.