Unsupported get request. Object with ID 'XXXXX' does not exist, cannot be loaded due to missing permissions, or does not support this operation
D

6

7

I want to use User Profile API from Facebook to get customer user data (first name, last name, picture). My app is reviewed, my app is connected to fanpage, i have pages_messaging and other permissions active. Webhooks are working correct, i receive messages from user and i can respond to them, yet when i use PSID from webhook and use it on this endpointhttps://graph.facebook.com/v9.0/{PSID} i get this error:

"error": {
"message": "Unsupported get request. Object with ID 'XXXXX' 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,
"error_subcode": 33}

Am I missing some permissions? Bad app/page configuration? I've been trying to find something in documentation but right now i'm defeated by it.

Deafanddumb answered 9/12, 2020 at 7:45 Comment(8)
What kind of access token did you use for the request?Derek
Page Access TokenDeafanddumb
Did you perform this part as well? developers.facebook.com/docs/messenger-platform/identity/…Derek
I didn't pull requests for these 3 options, aren't they additional? I just need first name, last name and profile_pic and if i understand correctly, i should have access to these fields.Deafanddumb
Are you sure the ID is actually correct? Make sure your system treats them as string values everywhere, otherwise you can easily run into problems with “mangled” ids due to integer overflow issues.Derek
I have this problem even if i'm trying to get data in graph api explorer. I doubt it's a type problem. I am doing everything according to documentation :(Deafanddumb
What does that prove? If you got the ID from your webhook endpoint, and it got mangled there already - then copy&pasting that already mangled ID into GAE now doesn’t prove or disprove anything.Derek
But when I use this endpoint to get data from my PSID (I'm an admin) i get my data, so I this can't be this mangled ID problem.Deafanddumb
D
2

I solved the problem with getting additional permission Business Asset User Profile Access (api 8.0+).

Deafanddumb answered 23/12, 2020 at 15:12 Comment(1)
Hello! I ran into exactly the same problem you described. Which permissions exactly do you use? Could you please list them? Business Asset User Profile Access part of the documentation does not list permissions.Grocery
W
1

I had the same issue, one probable reason is that you need to pass the account ID with 'act_' at the beginning of it so it becomes 'act_XXXXX'.

Wagtail answered 2/1, 2021 at 12:18 Comment(0)
B
0

I was having the same issue, the main reason is that you need to pass the account ID starting with

'act_'

at the beginning of it so it becomes

'act_XXXXX'

This resolved my issue. Hope so resolves everyone's who is coming to find solution for it.

Bulrush answered 23/2, 2022 at 21:43 Comment(0)
G
0

Looks like you cannot make this request on behalf of Test User. If it is your case, try to make a call from Tester's Role user account instead.

For real life application you need Business Asset User Profile Access

Gaud answered 17/5, 2022 at 12:19 Comment(0)
H
0

In my case I gave the wrong ID

I gave the ID which started with wamid.HBgMOTE5MDYwMDEzMjcyFQIAEh but the id should be of the particular media.

{"mime_type":"image\/jpeg","sha256":"JRdiouhGXQiEDSzFE2Htc8BU+L5cCacdd8HI0hr7W4g=","id":"784531173692349"}

Here it is 784531173692349.

I didn't change any permission. The default permission is enough.

Hippocrene answered 5/5 at 6:10 Comment(0)
M
-1

There can be multiple reasons to it, you need to check the status of your account by visiting the Alerts Page on this url: https://developers.facebook.com/apps/<APP_ID>/alerts/inbox/?business_id=<BUSINESS_ID>

This alert page would show you the issue/permissions denied, for example: enter image description here

Myrnamyrobalan answered 8/4, 2021 at 7:54 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.