I am making the following call to facebook graph API to get data stream from one of my facebook group(closed group).
https://graph.facebook.com/GROUP-ID/feed?access_token=MY-TOKEN
This was working for the past one year. Yesterday it started giving the following error
{
"error": {
"message": "An unexpected error has occurred. Please retry your request later.",
"type": "OAuthException",
"code": 2
}
}
I tried using the access token of a different facebook user and it is working fine.
But when I tried using my token it is throwing error.
Then I tried adding limit to the API call like this
https://graph.facebook.com/GROUP-ID/feed?access_token=MY-TOKEN&limit=3
This worked fine. When I increased the limit beyond 3 the same error occurred. Any Idea?
Using the same access token I am able to access data from my other groups. So I think the token is valid. I am really confused. Any help is appreciated.
Related
I am trying to get user's posts for the last 2 years using the valid token and the following link:
me/feed?fields=id,created_time,from,icon,is_hidden,message,message_tags,parent_id,permalink_url,picture,privacy,status_type,**story**,to,updated_time,comments.limit(0).summary(true),attachments{description,media{source,image{height,src,width}},target{id,url},title,type,url,subattachments},shares&limit=25&since=-2 years
I can retrieve most of the pages, however, sometimes I get the errors like this
{
"error": {
"message": "(#2) Service temporarily unavailable",
"type": "OAuthException",
"is_transient": true,
"code": 2,
"fbtrace_id": "AybmxKTaLwxa7L99QjcBpn0"
}
}
Turns out that the field story caused the problem. If it is removed from the link when getting a particular page, the request succeeds. So, the problem is apparently not in the code or the request, but on the Facebook side. However, we need this field. moreover, I can get the data with the story field in most cases, not in all though for some reason. Permissions are presumably ok because I am able to get most of the pages.
I am using restFB library to make requests, but I am able to reproduce the problem through Graph API Explorer
Is there a workaround to avoid this exception and keep the story field in the request and should this be reported as a bug?
I seem to be getting an error around scope when trying to create a token via the Instagram API. This was working perfect until about a week ago. If I remove scope then it works, but if I do that I can't access Hashtag searches, so I need that scope.
I keep getting the following error:
{"error_type": "OAuthException", "code": 400, "error_message": "Invalid scope field(s): public_content"}
This is the request URL:
https://api.instagram.com/oauth/authorize/?client_id=***CLIENTID***&approval_prompt=force&scope=public_content&response_type=code&redirect_uri=***REDIRECT URL***
My app has permissions for public_content as seen here:
Any ideas?
Remove "public_content". Only use "basic".
I was Unable to get the search result in Facebook Graph Api Explorer For Topic search API. I am getting the following error. I also have the access token included.
{
"error": {
"message": "(#15) This method must be called with an app access_token.",
"type": "OAuthException",
"code": 15,
"fbtrace_id": "CJiZqVSATXu"
}
}
Well, the error message actually contains the problem. You're not using an App Access Token, but seemingly an User Access Token (from the Access Token structure in your screenshot).
You must select an app of yours in the upper right Applications dropdown, and then select Get App Token in the dropdown below.
Still, that will probably not help much in this case. Are you aware that only whitelisted apps can use the Topic Search API?
See
https://developers.facebook.com/docs/graph-api/using-graph-api#search
https://developers.facebook.com/docs/mediasolutions/topic_search/v2.5
i am calling the graph API with an App Access token (grant_type=client_credentials) to search for places on facebook. Quering for
https://graph.facebook.com/search?type=place¢er=50.785361,6.0334127
Used return the search result reliably but suddenly stopped working with the following error:
{
"error": {
"message": "An unknown error has occurred.",
"type": "OAuthException",
"code": 1
}
}
I have tested the call on the Graph API Explorer. With my facebook user's access token the request still returns the desired data. Other requests with this app access token still work, so the token is good.
Any ideas?
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