I’ve searched for an answer to this question and have been unable to find any answers.
I’ve got a range of iOS apps that I want to use the same Facebook app. The SSO works perfectly with the first app I created and tested on. But all the other fail and get returned an unknown_error.
I’m calling:
self.facebook = [[[Facebook alloc] initWithAppId:<app id> urlSchemeSuffix:<app suffix> andDelegate:self] autorelease];
This is all working and even when the sign ins are failing I am returned back to the correct app. However, each time my the:
- (void)fbDidNotLogin:(BOOL)cancelled
method get called where cancelled equals NO.
Are there some other settings I need to change somewhere? Is this because my apps have not yet been submitted to the App Store (except the one that is working)? If that’s the case, how am I meant to test this stuff?
Thanks,
Daniel
I found the useful “unknown_error” message only occurred when authenticating via the iOS Facebook app.
A quick and dirty workaround is to force the Facebook SDK to use mobile safari for authentication. Look for [self authorizeWithFBAppAuth:YES safariAuth:YES] in Facebook.m and change the FBAuth value.
Not the nicest solution… but if you need a project out of the door… 😉