Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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