if emailString.rangeOfString("@collge.KSU.edu") == nil { print("Must be KSU email.") }
- (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:permissionsArray 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!"); } }]; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)