Tal
Tal

Reputation: 1448

Use Facebook api to determine scope of an access token

I want to determine what scope an access token I have has.

The Access Token Debugger provides me with that information but I can't figure out what api that uses.

I know on the front end you can just call the api and nothing will happen if you already have the scope but I want to do it programatically on the backend.

Upvotes: 5

Views: 3333

Answers (1)

Tal
Tal

Reputation: 1448

As described: https://developers.facebook.com/docs/howtos/login/debugging-access-tokens/#step1

You can use

https://graph.facebook.com/debug_token?input_token=INPUT_TOKEN&access_token=ACCESS_TOKEN

Where access_token is your app access token

Upvotes: 4

Related Questions