Our app started getting the following error message on a very basic get that was working perfectly fine until recently
https://graph.instagram.com/v12.0/me?access_token=<IG...>
{
"error": {
"message": "Unsupported request - method type: get",
"type": "IGApiException",
"code": 100,
"fbtrace_id": "A2KKkkTQ2nn70IQPCGKcKVB"
}
}
What is this error? This has been working for months, and it looks like freshly created access_token do not have an issue...
Posting answer after days of research:
You need to get your business approved, and then this error will disappear.
The issue is that the dashboard was not letting us request a business approval since we did not use (supposedly) any API requiring such approval.
Long story short, you need to create another dummy app with the same business that needs business approval (e.g. a game). Ask for permission review, then once the permission review is pending, you will be able to require business approval. Once that's done, you can delete the dummy app.
Related
I recently started using the new Whatsapp Cloud API. Unfortunately already the sample request in the first steps guide gives an error message. The request to the messages endpoint gives the following response:
{
"error": {
"message": "An unknown error occurred",
"type": "OAuthException",
"code": 1,
"error_subcode": 2593006,
"is_transient": false,
"error_user_title": "Account Not Exist",
"error_user_msg": "Account does not exist in Facebook Hosted API, please use /register API to create an account first.",
"fbtrace_id": "AX1Thf9OPBhmj7NlDV6-5IA
"
}
}
I am still using the Test WhatsApp Business Account with a Test Number.
When calling the register endpoint I get You can’t complete the setup process because your business doesn’t meet WhatsApp’s policy requirements. If you think this is incorrect, reach out to Meta Business Suite support for help.
Does anyone have an idea, what the problem is?
Thank you in advance,
Sören
Whatapp Business Platform requires a verified FaceBook business account and also a working payment method. I recommend to verify your Facebook (Meta) Business Account.
I want to get Instagram stories insights which published in the last 24 hours. I currently only access to story basic details alike, story image, owner id, etc with this api:
https://graph.facebook.com/story_id/?fields=id,media_type,media_url,owner,timestamp,caption&access_token={access_token}
Actually i want to get all details which is that: exits,impressions,reach,replies,taps_forward,taps_back
but when I try this with this api:
https://graph.facebook.com/story_id/insights?metric=exits,impressions,reach,replies,taps_forward,taps_back&access_token={access_token}
it show me that error. always.
{
"error": {
"message": "(#10) Not enough viewers for the media to show insights",
"type": "OAuthException",
"code": 10,
"fbtrace_id": "AvZdhqaXB1_Dij7B1DD-pSR"
}
}
even that on reference of graph api they tell us do same like :
Reference: https://developers.facebook.com/docs/instagram-api/reference/media/insights#create
I dont know how to fill butt it shows me error always
https://i.stack.imgur.com/55rBy.png
You need to set up a webhook for it:
https://developers.facebook.com/docs/instagram-api/guides/webhooks/
https://developers.facebook.com/docs/graph-api/webhooks/getting-started
Your webhook URL will get the insights of a story (or media object, to be specific) right when it disappears, with a POST request from Instagram.
Careful though, you cannot access the story details anymore if you get the webhook, so you have to get the stories when they exist (for example, with a cron job that runs at least every 23h to get all stories) and add the insights data later by matching the media id.
I have two Facebook test users A and B. Both users are using my Facebook app. As app in development mode, I give all the permissions to app for both the users and created the access token for both the users.
Now I can get feed of both the users A and B. So I found a feed of user B used post id is 238863083139817. But when I tried to like the post of B from A using given bellow graph API.
POST/v2.6/1542696762701116_238863083139817/likes
I got the error message give bellow.
{
"error": {
"message": "(#100) Error finding the requested story",
"type": "OAuthException",
"code": 100,
"fbtrace_id": "DH4NvDpj3aN"
}
}
Here 1542696762701116 is my id.
Anybody know how can I like the post of user who is not in my friend list.
The same code will work if user A and B will be friends.
At first sight, it seems to be a problem with the permissions of the application. Maybe could you add some to check if the problem remains.
For instance, I saw that post:
"(#100) Error finding the requested story" encountered when POSTing like on a post
It talks about the permission: read_stream that can help to solve your problem.
Could you try and give your feedback?
I've a facebook application and a group for that application. Is it possible to make the application automatically post on the group. As far as posting is concern, its ok but how to give the application permission to post on the group?
I'm using facebook graph explorer to test this
https://graph.facebook.com/GROUP_ID/feed, method Post and adding a field 'link' with URL 'http://www.google.com' and selecting application as the application i want. I'm getting this error:
{
"error": {
"message": "An unexpected error has occurred. Please retry your request later.",
"type": "OAuthException",
"code": 2
}
}
The error doesn’t exactly say this, but I’d guess it’s thrown because your not sending a valid access token.
Get a user access token from one of the users that is allowed to post to that group’s wall.
The problem was a permission problem and the permission needed was user_groups,publish_stream
I am in development mode of a facebook app. I have two users for my app: myself as admin and other as tester. I am using GRAPH API explorer to publish a sample custom action. It is always giving following error for both users. I have made sure that I use right permissions and pass right parameters.
{ "error": { "message": "(#100) The Action Type searchmates:Need is not approved, so app <appid> can only publish to administrators, developers, and testers of the app. User <userid> is not one of those roles.", "type": "OAuthException", "code": 100 }}
I raised a bug also on facebook: Defect raised. So far no luck. Please help how to proceed.
If it is a facebook bug, which I am not so sure of, as I never faced this with default or custom action, you have to nail it down by narrowing possibilities.
Can it be a valid access token error?
Did you place fb:admins in your meta tag?
Is there any malformed (500 error) url that facebook can't see?
etc.