2017-02-09 59 views

回答

2
FBSDKLoginManager *login = [[FBSDKLoginManager alloc] init]; 
[login logInWithReadPermissions: @[PERMISSIONS] fromViewController:self handler:^(FBSDKLoginManagerLoginResult *result, NSError *error) { 
    if (error) { 
     NSLog(@"Process error %@", error); 
    } else if (result.isCancelled) { 
     // User tap Done 
    } else { 
     // Successful login 
    } 
}]; 
相關問題