Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting random "facebookErrDomain error 10000"

I am using the latest facebook IOS SDK, and I am getting random "facebookErrDomain error 10000", when using the requestWithGraphPath. I can trigger the request from the UI and sometimes it runs fine, sometimes it gives me the error.

Has anyone ran into a similar issue?

like image 252
machunter Avatar asked Feb 09 '11 20:02

machunter


3 Answers

The error object returned has the details about what's happening. I suggest to implement that method to get more infos:

- (void)request:(FBRequest *)request didFailWithError:(NSError *)error {
    NSLog(@"%@", [error localizedDescription]);
    NSLog(@"Err details: %@", [error description]);
};

For example for my problem gived me that info, and I've fixed it:

2011-05-27 11:19:57.313 Challengein[7704:207] The operation couldn’t be completed. (facebookErrDomain error 10000.)
2011-05-27 11:19:57.314 Challengein[7704:207] Err details: Error Domain=facebookErrDomain Code=10000 "The operation couldn’t be completed. (facebookErrDomain error 10000.)" UserInfo=0x6878b90 {error=<CFBasicHash 0x6879be0 [0x141c400]>{type = mutable dict, count = 2,
entries =>
    2 : <CFString 0x6877f70 [0x141c400]>{contents = "type"} = <CFString 0x686f9a0 [0x141c400]>{contents = "OAuthException"}
    3 : <CFString 0x686d610 [0x141c400]>{contents = "message"} = <CFString 0x686f970 [0x141c400]>{contents = "(#100) picture URL is not properly formatted"}
}
}
like image 132
Cla Avatar answered Nov 16 '22 13:11

Cla


The problem was due to the fact that during the development I had changed the permissions requested by the application. I had authorized my application say with permission x,y,z but I was only asking for x,y.

What I had to do is to remove the application from the list of authorized applications and authorize it again with the appropriate permissions.

I wish they gave better error message :)

like image 32
machunter Avatar answered Nov 16 '22 13:11

machunter


If that didnt work, look at the issues on GitHub https://github.com/facebook/facebook-ios-sdk/issues/closed#issue/205

In the plist file under URL types, make sure you set the value of "Item 0" to "fb123456" instead of "fb[123456]"

that's what messed me up

like image 1
Tony Avatar answered Nov 16 '22 14:11

Tony