Facebook API error subcode 33 - facebook

I have an app that gets leads from facebook after webhook request when leads fill out forms: Some pages are throwing this error:
{
"error": {
"message": "Unsupported get request. Object with ID '233332620530416' 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,
"fbtrace_id": "HIItB4mggfk"
},
"__debug__": {}
}
I cannot find the error subcode description in Facebooks API docs.

Check you access token at https://developers.facebook.com/tools/debug/accesstoken
Your app might be missing a needed permission scope.

Visit Business Settings > Users > System Users > Chose «Conversions API System User» > Add Assets. Add your Pixel with ID from your request to the list of assets System User can access.

I have had this issue a few times and the error led me to spend an hour or two combing the docs. The real issue for me each time has been malformed json in the request body (I'm using curl). Dumb I know, but in case a poor soul comes across this. Be sure to validate your json before you decide you query is wrong.

I got this error when adding access_token in post body, worked when adding parameters to url.
Success result using postman
Not success result using postman

Add your access token in the Authorization tab, then choose Oauth2.0 and add your access token on the right side. Please refer to the screenshot for the postman.Click here for the screenshot

I found the answer recently
Follow this steps using postman
https://graph.facebook.com/page-name/feed
headers:
Content-Type: application/x-www-form-urlencoded
Body:
message: "your message"
link:"your web link "
access_token:'Your access token '

Related

Instagram Graph API unusual error during GET request for insights

I am trying to extract instagram insights data to further analyze it locally and store it. For that I generated a system user access_token with the required permissions. Now I am trying to perform a GET request just as described in this documentation: https://developers.facebook.com/docs/instagram-api/reference/ig-user/insights
For that my call URL looks like this:
https://graph.facebook.com/v15.0/{instagram-id}/insights?metric=impressions,reach,profile_views&period=day&access_token={system_user_token}
This gives following response:
{
"error": {
"message": "(#100) The value must be a valid insights metric",
"type": "OAuthException",
"code": 100,
"fbtrace_id": xxx }
}
Thinking maybe this is due to my system user token not beeing elegible for this call I tried the Graph API explorer in the browser and a generated access token with the needed permissions. I am not quite sure where to go from here. Thank you for your help
I tried different access_tokens generated in the business manager and also generated in the meta for developers website. I tried to use a variety of different metrics described in the documentation. All gave the same output as described above. I also tried different api versions (15.0 and 16.0)

In Instagram Graph API, when I try to publish to Instagram, I receive error 24 subcode 2207006 and cannot publish

For the past 3 months I have been automating posting images to my instagram account. But today it no longer works, I assume because my access token expired. It is just publish that does not work, I can still create the object, which confuses me because the new access token works for some api calls but not all.
My endpoint params for creating an object:
{'caption': 'Filler caption',
'access_token': 'removed',
'image_url': https://www.smashbros.com/assets_v2/img/fighter/mega_man/main.png'}
The object url:
https://graph.facebook.com/v6.0/17841406231094676/media
I import requests for python, then do
data = requests.post( url, endpointParams )
And I get back
{'creation_id': '17900592242391633',
'access_token': 'removed'}
publish Url:
https://graph.facebook.com/v6.0/17841406231094676/media_publish
---- PUBLISHED IMAGE RESPONSE -----
Response:
{
"error": {
"message": "The requested resource does not exist",
"type": "OAuthException",
"code": 24,
"error_subcode": 2207006,
"is_transient": false,
"error_user_title": "Media Not Found",
"error_user_msg": "The media with 17,900,592,242,391,633 cannot be found.",
"fbtrace_id": "AIYNvGl2IQQp5L9G7kb9F7O"
}
}
Does anyone know how I can fix this?
Edit: My script started working again, I believe this was an error on Facebook's end
The issue is that you need 2 different kinds of tokens. A page token to create the media object and then a user token to actually post to Instagram. I'm guessing in your case it worked at first because both tokens were valid, but with time, both expired, but only 1 of them got renewed by your system.
I've been having the same issue, where I could only upload the media object but not publish it until I used a page token to create the media object and then a fresh user token to post it. By doing this I got it to work right away.
I got that solution from here, hope it helps
Media Builder Not Found Exception while Publishing into Instagram using Graph API

How to get access token from Instagram API

I've been following Instagram's basic guides here https://developers.facebook.com/docs/instagram-basic-display-api/guides/getting-access-tokens-and-permissions
I added my personal Instagram account as a tester and I got the authorization code, but when I send the request to get the access token, this is my response:
{
"error_type": "OAuthException",
"code": 400,
"error_message": "Missing required field client_id"
}
This is my input in POSTMAN:
Any help or possible tips will greatly be appreciated, thanks in advance!
I found the solution to my own question here Impossible to get an access_token for Instagram Basic Display API
When using Postman for Instagram's API, you should fill out the info required under the POST request's Body, NOT the Parameters. And when in the body, just select x-www-form-irlencoded
Just a clarification, you also have to keep "#_ at the end of the code for it to work (contrary to what the doc says)

Error with Twitter link

Yesterday I started a new app on Facebook. Today I got the message that when people copy the link to Twitter they get an error. This is what you get:
{
"error": {
"message": "Unknown path components: /your_namespace:your_action",
"type": "OAuthException",
"code": 2500
}
}
What does this mean? What could be the problem?
Are you actually sending the POST action link to Twitter? Why?
I think you misunderstood how Open Graph works. Basically, you should be the one publishing actions when users take an action using your service. You can use a server-side or a client-side language to POST request (when you click a link, your browser actually makes a GET request, not a POST) to https://graph.facebook.com/me/namespace:action?access_token=ACCESS_TOKEN&OBJECT_PATH=OBJECT_URL
Note that you need to create an app, use it to authenticate users to get the access token and also set your custom actions / objects. These will need to be approved before you can actually use them.
You should start by taking a look at the sample apps to see how they work: https://developers.facebook.com/docs/samples/

Facebook acheivment registeration error

i try to register an achievement for my game app thorough Graph API Explorer using a POST to https://graph.facebook.com/APP_ID/achievements with access_token =xxxxxx ,achievement = right url and display_order =1 but it throws the following error
{
"error": {
"message": "(#15) This method must be called with an app access_token.",
"type": "OAuthException",
"code": 15
}
}
. i have checked the achievment url and my app access token in the object debugger and it gives right result. But still im getting the above when try to register my achievement. i have checked evrywhere i could to find a solution but didnt get any (although there where similar post which didnt a give solution). Any help will be much much appreciated as it really takes my lot of time figuring out a solution
Are you sure it's the app access token retrieved from the instructions at https://developers.facebook.com/docs/authentication/applications/ and not the user's access token?
If you're doing this with the Graph API Explorer instead of in code or manually, you need to replace the access token the Graph API explorer is using with the one you retrieved via those instructions