Hi, this returns the status of FBSessionStateClosedLoginFailed each time it starts. I checked my package name, URL setting, etc. And everything is cool. In fact, the book on the face knows that I am authenticated against the application. However, whenever I call openWithCompletion, my session fails!
[appDelegate.session openWithCompletionHandler:^(FBSession *session,
FBSessionState status,
NSError *error) {
switch (status) {
case FBSessionStateOpen:
NSLog (@"Open");
break;
case FBSessionStateClosed:
NSLog (@"Closed");
break;
case FBSessionStateClosedLoginFailed:
NSLog (@"Failed");
break;
default:
break;
}
[self updateView];
}];
I created this in the application’s application, which is also called successfully, but always returns false:
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation
{
return [FBSession.activeSession handleOpenURL:url];
}
source
share