Using the code from Facebook, I implemented
- (BOOL)openSessionWithAllowLoginUI:(BOOL)allowLoginUI { NSArray *permissions = [[NSArray alloc] initWithObjects: @"publish_actions", nil]; return [FBSession openActiveSessionWithPermissions:permissions allowLoginUI:allowLoginUI completionHandler:^(FBSession *session, FBSessionState state, NSError *error) { NSLog(@"error %@", error); [self sessionStateChanged:session state:state error:error]; }]; }
It returns NO, which I understand, because this is the first login, and loginUI works (it sends the user to FB and asks them for permissions), and then returns, but the Handler completion block never starts. It just goes back to the app and nada.
source share