App access token, can't get user information

339 views Asked by At

When I try to use the already generated access token, on this https://graph.facebook.com/4921782178422?fields=id&access_token=ACCESS_TOKEN, it gives me this in response:

{
 "error": {
  "message": "Unsupported get request. Object with ID '4921782178422' does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api",
  "type": "GraphMethodException",
  "code": 100,
  "fbtrace_id": "F2ot2MGcBBM"
   }
}

Facebook writes that all access tokens have permissions to public_profile, but i can't use the link above. 4921782178422 is a user id.

It works fine, when I use my own user access token, but that's only valid for 1 hour, and I need it longer than that.

I have followed these steps: facebook: permanent Page Access Token?

What do I do wrong?

0

There are 0 answers