Ugo Landini
Ugo Landini

Reputation: 63

Getting "unsupported GET request" from public_profile info

I'd like to know my Facebook ID but the "official" way of doing that

http://graph.facebook.com/{user} (obviously with my userid) gives an unsupported GET error:

{
   "error": {
      "message": "Unsupported get request. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api",
      "type": "GraphMethodException",
      "code": 100
   }
} 

Why is not working? The documentation says the the userid is always part of the public_profile. Are there any other ways of doing that?

Upvotes: 1

Views: 7215

Answers (1)

andyrandy
andyrandy

Reputation: 73984

"ugol70" is not your id, it´s your username. You can´t use the username anymore. Only use the "App Scoped ID" you get after authorizing (either directly in the authorization process or with the /me endpoint).

..and ALWAYS use an Access Token for API calls. See the following links about Access Tokens, for example:

Upvotes: 1

Related Questions