Created
August 21, 2012 02:25
-
-
Save dominickm/3410798 to your computer and use it in GitHub Desktop.
This is an example of creating a user for your app from Facebook via Parse -- this snippet was made with Code Journal
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
- (void) ourMagicalMethod { | |
[Parse setApplicationId:@"SOME_ID" clientKey:@"Your Super Secret KEY"]; | |
[PFFacebookUtils initializeWithApplicationId:@"SOME_FB_ID"]; | |
NSArray* permissions @["desired permissions"]; | |
[PFFacebookUtils loginWithPermissions:permissions block:^(PFUser* user, NSError* error) { | |
// your epic logic goes heres | |
}]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment