Facebook graph api, error when getting home connection - facebook

I get the following error when trying to query me/home
error: {
message: "An unknown error has occurred.",
type: "OAuthException",
code: 1
}
When I query me/feed it's working. And dev documentation says they need the same.

I'm running into the same problem, and guessing (hoping) it is a temporary bug. I noticed if I explicitly specify the fields I'm interested in, then I don't see the error. i.e.
/me/home?fields=from,created_time,description,id,link,message,name,picture,source,story,to,type,updated_time,caption,icon
If I add the "actions" field, the error comes back, so perhaps there is a problem there.

Related

Facebook Test User error

I use facebook login in my app and have tests for it. I use the /{app-id}/accounts/test-users endpoint to create users for my tests but the endpoint fails with the very generic
{
"error": {
"message": "An unknown error has occurred.",
"type": "OAuthException",
"code": 1
}
}
(which says the API is possibly down). I tried this with 3 different appids/secrets, both with using app_id|app_secret as the token and with a token from the get token endpoint. I also tested this on the Graph Api Explorer and it's giving me the same error. It was working fine but then it suddenly stopped.
What I want to know is 1. is it down? and 2. if not, what did i do wrong or what changed since yesterday?
+1 this also started to me yesterday mid-morning, with code and an FB app which had been working previously and was unchanged.
When I look at https://developers.facebook.com/apps/FB_APP_ID/roles/test-users/, I can see the new users.
So the call is "working" in that new users are being created, but it is broken in that we get a 500 and we don't get an access_token.
I don't have an answer yet.
I ran into a similar problem last week. After long hours of debugging I found out that I would get this same error every time I tried to create multiple test users with the same name simultaneously (i.e. when running tests in multiple threads).
So instead of setting custom a user name I don't even use the name field and I just let Facebook generate one. This way everything works fine. Seriously. I love Facebook API so much. :)
Hope this helps someone.

Facebook Ads Error

We are using the new Facebok Ads report endpoint.
https://developers.facebook.com/docs/reference/ads-api/adreportstats/
In some days, we are getting a weird error:
error:
{
message: "(#100) The parameter data_columns is required"
type: "OAuthException"
code: 100
}
When sending the exact same report on a different range it works.
This is done using async=true since the date range is 24-NOV-2013
If anyone from facebook is looking the report_run_id is 6013557375769.
Anyone encountered this issue?
You need to add the data_columns to your params when you ask for the report.
You can copy them from the original request you did, and this should solve this.
I had the same issue, again it only started happening today.
Adding the data_columns parameter as Tamar mentioned solved it for me:
act_XXXXXXXXXXXX/reportstats?report_run_id=XXXXXXXXXXX&data_columns=["campaign_id","placement","impressions"]

Facebook's FacebookApiException class's error codes?

Where can I find a list of all the error codes for Facebook's FacebookApiException class? I found 2 such lists, both of which are outdated: https://developers.facebook.com/docs/reference/api/errors/ and http://www.fb-developers.info/tech/fb_dev/faq/general/gen_10.html
From debugging my own script, I found out that error #2500 is "An active access token must be used to query information about the current user." and error #3501 is "User is already associated to the article object on a unique action type Read." Neither error codes are in the links posted above.
This might help you. Most probably Login related error.
https://code.google.com/p/facebook-actionscript-api/issues/detail?id=453

fbgraph error code

Does anyone know where can I find all the error code and error type for FBGraph? While handling error, I want to check what error FBGraph throws (like: duplicate post error, access token expire error) and take action accordingly. (I a working on Ruby On Rails 3)
I referred the documentation, but it doesn't list out the code and type of all the errors. Where can I find these error codes?
Thanks... :)
This has long been a problem with using the Graph API. There's no documentation anywhere as to all the possible errors that you can receive. Additionally there are errors that you receive randomly that don't occur when you make the same request again (ie bugs).
A lot of the Graph API seems to have an underlying structure that makes FQL queries. So, when those FQL based queries throw an error you can find the code here: http://fbdevwiki.com/wiki/Error_codes#FQL_Errors

Unknown OAuthException from basic OpenGraph user API calls

Starting around Friday night, and continuing as of this morning, we have been seeing errors for simple open graph queries for valid users.
For example: https://graph.facebook.com/833150354
Returns:
{
"error": {
"type": "OAuthException",
"message": "An unknown error has occurred."
}
}
But, the user is valid:
http://www.facebook.com/profile.php?id=833150354
It looks like at least one other person has run into this: http://bugs.developers.facebook.net/show_bug.cgi?id=20490
Has anyone else seen this behavior and, if so, found a work around? Thanks!
Experienced the same error with 2 of our app's users today. Their OG representation throws the error, but their regular FB profile works fine. Sounds like an OpenGraph bug, not sure of any possible workaround :\
Sometime between 7:50 and 8:50 PM EST on 9/13, this problem went away for us. All the other cases I've seen shared also appear to work now.
Love that Facebook never acknowledged the issue in any way I could find even though it was broken for 5 days.
I get the "unknown error" all the time, when I query the graph using the application's token. When I have the current user's token, that works. But the application token fails.
(The app's token worked before the oauth upgrade, BTW.)