I'm using parse sdk with facebook to login/sign up the user. Everything is working fine. This is my code
- (void)_loginWithFacebook {
// Set permissions required from the facebook user account
NSArray *permissionsArray = @[ @"user_about_me", @"user_relationships", @"user_birthday", @"user_location"];
// Login PFUser using Facebook
[PFFacebookUtils logInInBackgroundWithReadPermissions:permissions block:^(PFUser *user, NSError *error) {
if (!user) {
NSLog(@"Uh oh. The user cancelled the Facebook login.");
} else if (user.isNew) {
NSLog(@"User signed up and logged in through Facebook!");
} else {
NSLog(@"User logged in through Facebook!");
}
}];
}
When i click on login button, it shows an alert with two options Allow and No . when allowed it signes me up but when i click no it says User Cancelled the facebook login .
Now what is actually i want to when user clicks NO and what to try again, it doesn't show the login alert box instead it says User Cancelled the facebook login again, How do i make it show the alert box again so the user can allow the app again to login.