Im using parse.com login controller to log users into facebook.
if user authorized the app before he gets 'you already authorized this app' from facebook.
anyone know how it can be solved ?
the code Im using:
PFLogInViewController *logInController = [[PFLogInViewController alloc] init];
logInController.delegate = self;
logInController.fields = PFLogInFieldsFacebook ;
logInController.facebookPermissions = [NSArray arrayWithObjects:@"publish_stream", nil];
NSLog(@"%@",logInController.facebookPermissions);
[self.navigationController presentModalViewController:logInController animated:YES];
I suspect you are showing the view unnecessarily. Try only presenting the PFLogInViewController if [PFUser currentUser] returns nil.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With