This question already exists:
Instagram/Facebook deprecating many APIs [duplicate]
Closed 4 years ago.
I generated my access token as I was doing everyday. Two days before, I used the event ID to get the details of this event:
1852415531478014
the facebook event is this
https://www.facebook.com/events/1852415531478014/
But today, the graph API returns this error
{
"error": {
"message": "Unsupported get request. Object with ID '1852415531478014' 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": "BxdCziS18mQ"
}
}
This was working perfectly fine till day before yesterday and has now stopped working. I am using the same user access token in the explorer tool
https://developers.facebook.com/tools/explorer/
I have a facebook app and I am using the App token in the explorer to get details of the event using the event ID
https://developers.facebook.com/docs/apps/review (Thanks to Cambridge Analytica!)
Related
I'm trying to use this endpoint from the Instagram graph api:
GET /ig_hashtag_search?user_id={user-id}&q={q}
Documentation for this endpoint can be found here.
I'm running this GET request:
https://graph.facebook.com/v14.0/ig_hashtag_search?q=coke&transport=cors&user_id=<my_user_id>&access_token=<my_access_token>&q=coke
and get this as response:
{
"error": {
"message": "(#200) Requires instagram_basic permission to manage the object",
"type": "OAuthException",
"code": 200,
}
}.
The user id comes from my instagram account and the access_token that I'm using is a User token generated with "Graph API explorer" and I can see that this token has the scope "instagram_basic" when using the "Access Token Debugger".
I can't understand why this does not work? Do I really need to submit a API review just to test the hashtag endpoint during development?
Please help!
I guess sometimes App review team of Facebook doesn't know what is the usage of the permission so they just decline the submissions randomly. I got that permission like 3 months ago and i checked my app review. I send them this text
We are going to use instagram_basic to read an Instagram account profile's info and media. We will get the basic metadata of an Instagram Business account profile like "USERNAME", "ID", "FOLLOWERS", "FOLLOWING". You can check the Screescast to see how we use the instagram_basic on our app.
Here is what they saw while they do the app review
Also be careful while you send requests, keep in mind to change it to development mode. Some of the endpoints works only in live mode. The API still changes a lot and there are tons of bugs i see in my project. I hope this helps.
I'm using Facebook graph API v2.9, and in login use scope:
email,ads_management,ads_read,business_management,pages_show_list,user_managed_groups,user_events,read_insights
I created an application on developers.facebook.com.br and associated the Marketing API, where I have only myself as an administrator.
When I log in to the application that I am developing with my facebook account I succeed, however if someone else tries to use my tool with this person's facebook login, when trying to call api
https://graph.facebook.com/v3.0/me/adaccounts?fields=name,account_id,account_status,id&access_token={TOKEN_LOGIN}
{
"error": {
"message": "(#3) Application does not have the capability to make this API call.",
"type": "OAuthException",
"code": 3,
"fbtrace_id": "DAoQR9tEODK"
}
}
gives the following error:
My question is if someone else uses this API, will I have to add it as an application manager, or if is there another fetch to get all adaccount_id without that person being a member of my application?
I am trying to retrieve the data feed from a closed facebook group trough server-to-server call using graph api v2.8.
The access token is obtained by configuring my OAuth 2.0 provider with the following parameters:
OAuth2ClientOptions credentials = new OAuth2ClientOptions()
.setClientID(CLIENT_ID)
.setClientSecret(CLIENT_SECRET)
.setSite("https://www.facebook.com")
.setAuthorizationPath("/dialog/oauth")
.setTokenPath("https://graph.facebook.com/oauth/access_token");
CLIENT_ID and CLIENT_SECRET values are received from facebook after registering a new application there.
The response I get from the facebook server (graph.facebook.com) is:
{
"error": {
"message": "Unsupported get request. Object with ID '...' 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": "D91Fkk/Gmx8"
}
}
The same code can be successfully used to access an OPEN facebook group. In addition, there is no problem to read the data inside the CLOSED group from Graph API Explorer using a user token. Seems to be security problem.
How can I configure the permissions of my facebook application so that I can reach the data also inside a CLOSED group?
Regards,
Mihail
I assume that you are not an Admin/Moderator of the group. Afaik you can only read posts of a closed group with a User token of a Moderator.
An App Token cannot work for this, there is no relation to any User. You MUST use a User Token.
Following the Ads API docs for reachestimate (http://developers.facebook.com/docs/reference/ads-api/reachestimate/), I received a "false" response when calling
https://graph.facebook.com/act_0000000000000000/reachestimate?currency=EUR&targeting_spec={'countries':['US']}&access_token=___
(Note: act_0000000000000000 is my user Id and _ is my access token - these tokens work correctly for other Ads API calls).
Using the Graph API Explorer tool, I receive the following response on this API call
{
"error": {
"message": "(#10) Application does not have permission for this action",
"type": "OAuthException",
"code": 10
}
}
However, when I call
https://graph.facebook.com/1111111111111111/reachestimate?currency=EUR&targeting_spec={'countries':['US']}&access_token=___
where 1111111111111111 is an adgroup, I get a valid data structure.
Has anyone come across this elsewhere? Is there a "magic" setting somewhere that enables this capability on the user account (enabled for ads_management, offline_access)?
Any thoughts very welcome.
Thank you.
Thanks #Igy - just confirmed that my issue was indeed the misuse of my UserID in account field - have since migrated these queries to use the designated account ID and works as expected.
I am using graph API to get the feed post.
https://graph.facebook.com/128172073865656/feed?limit=200
but it is showing exception
{
"error": {
"type": "OAuthException",
"message": "An access token is required to request this resource."
}
}.
Could any one please help.
Quite simply, you need to obtain and supply an access token with your request.
In particular, the Graph API connections that you're trying to load have been changed recently, and now require an access_token, where they previously did not.
See the Facebook Developer Blog, posts on this:
https://developers.facebook.com/blog/post/509/ - Notification of change in requirements.
https://developers.facebook.com/blog/post/510/ - Confirmation that the changes are now live.