Aranir
Aranir

Reputation: 818

[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?

Upvotes: 5

Views: 7935

Answers (2)

Cagatay Kalan
Cagatay Kalan

Reputation: 4126

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.

Upvotes: 7

Niraj Shah
Niraj Shah

Reputation: 15457

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.

Upvotes: 1

Related Questions