Created
September 27, 2013 16:48
-
-
Save jtubert/6731509 to your computer and use it in GitHub Desktop.
Sketchio presentation - FB login
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (IBAction)loginButtonTouchHandler:(id)sender{ | |
NSArray *permissionsArray = @[@"user_about_me"]; | |
[PFFacebookUtils logInWithPermissions:permissionsArray block:^(PFUser *user, NSError *error) { | |
if (!user) { | |
if (!error) { | |
NSLog(@"Uh oh. The user cancelled the Facebook login."); | |
} else { | |
NSLog(@"Uh oh. An error occurred: %@", error); | |
} | |
} else if (user.isNew) { | |
[self start]; | |
} else { | |
[self start]; | |
} | |
}]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Mustafa Özcan
Kişisel Blog makalelerimi SEO konusundaki deneyimleri paylaştığım blogum.Fırsatları ayağınıza getiren mustafa ozcan blog kişisel temalı yazılar ile gündemde yer alan güncel yazıları sizlere sunma fırsatı ile.