Timm
Timm

Reputation: 12753

Get Facebook userID from access token

Is it possible to get the userID using the access token?

I've seen some answers say https://graph.facebook.com/me?access_token=abc but I think this is wrong as this gets the details of the currently logged in user, not the user in the access token.

Upvotes: 1

Views: 6053

Answers (1)

Igy
Igy

Reputation: 43816

The currently logged in user is the user in the access token - if you have a user access token, you're acting on behalf of that user.

The two shortcuts are /me and /app which are shortcuts for the user of that access token, and the app of that access token

Upvotes: 4

Related Questions