Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

[Facebook Graph API]: How to get test user access token with specific scope

For my Test users the access token I can obtain has always the same scopes:

public_profile, basic_info, user_friends

I didn't find a way to modify the access token provided by the test users in the interface or via an API call.

Is there a simple way to modify the scope of the access token of a test user?

like image 880
Aranir Avatar asked Aug 21 '14 13:08

Aranir


2 Answers

If what you want is to create some test access tokens for specific scopes and test different api functions with them, try this link: https://developers.facebook.com/tools/explorer/

There click the "Get Access Token" button, select any specific scope you want.

Sometimes you may see some checkboxes checked and you can't disable them by clicking. Then use the "Clear" button at the bottom.

like image 90
Cagatay Kalan Avatar answered Oct 19 '22 05:10

Cagatay Kalan


You can change the password for the test user and login in directly as the test user using the email address provided. You can then use the login button in your application to grant the test user any additional permissions that are required.

As a general guide, you should always test your application with a test user. It can sometimes reveal issues that wouldn't otherwise have been noticed until a real-user experiences it.

like image 23
Niraj Shah Avatar answered Oct 19 '22 07:10

Niraj Shah