Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

parse api remove 'you already authorized this app' after user authorized the app

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];
like image 348
user513790 Avatar asked Nov 21 '25 11:11

user513790


1 Answers

I suspect you are showing the view unnecessarily. Try only presenting the PFLogInViewController if [PFUser currentUser] returns nil.

like image 91
Thomas Bouldin Avatar answered Nov 24 '25 00:11

Thomas Bouldin