I am using iOS facebook SDK 3.0. How can I check if a user has already been registered?
I tried the line below, but it does not work properly. It sometimes returns NO, although I logged in. Any suggestions?
if (FBSession.activeSession.isOpen == YES) {
- EDIT -
this is how i open a facebook session:
NSArray *permissions = [[NSArray alloc] initWithObjects: @"user_likes", @"read_stream", @"publish_actions", nil]; return [FBSession openActiveSessionWithPermissions:permissions allowLoginUI:allowLoginUI completionHandler:^(FBSession *session, FBSessionState state, NSError *error) { [self sessionStateChanged:session state:state error:error]; }];
The first time he needs a login and therefore works. If I try this while I am already registered with FBSession.activeSession.isOpen returns NO.
source share