Creating a Test User for Facebook

 

 

To create a test user for fb, just follow these steps:

Get your App Id from  your  fb developer page.

Get your application App Secret from your fb developer page.

Get access_token you’ll be using to create test user:

https://graph.facebook.com/oauth/access_token?

client_id=APP_ID
&client_secret=APP_SECRET
&grant_type=client_credentials

Create a test user: (a new user is created every time this url is refreshed)

https://graph.facebook.com/APP_ID/accounts/test-users?

installed=true
&permissions=read_stream
&method=post
&access_token=ACCESS_TOKEN

The response should look like this:
{
"id": "APP_ID",
"access_token": "ACCESS_TOKEN",
"login_url": "https://www.facebook.com/platform/test_account_login.php?user_id=UID&n=ibmD5XG3C4B9tmb",
"email": "vezbwir_zharambesteinwitzskybergmxn\u0041tfbnw.net",
"password": "561622244"
}

Use url to login, do not use login form. Test user will be deleted after logout, you’ll need to create a new user after logout.

More information >>