Skip to content

Instantly share code, notes, and snippets.

@dominickm
Created August 21, 2012 02:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dominickm/3410798 to your computer and use it in GitHub Desktop.
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
- (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