Problems parsing and logging into Facebook

When I run this the app crashes

    [PFFacebookUtils logInWithPermissions:@[] block:^(PFUser *user, NSError *error) {
    if (!user) {
        NSLog(@"Uh oh. The user cancelled the Facebook login.");
    } else if (user.isNew) {
        [self dismissViewControllerAnimated:YES completion:NULL];
    } else {
        [self dismissViewControllerAnimated:YES completion:NULL];
    }
}];

      

this is what comes out on log

2014-10-26 03:30:05.097 RecipesBook[2196:490585] +[PFUser _logInWithAuthTypeInBackground:]:unrecognized selector sent to class 0x383b48

      

2014-10-26 03: 30: 05.100 RecipesBook [2196: 490585] * Application terminated due to uncaught 'NSInvalidArgumentException', reason: "+ [PFUser _logInWithAuthTypeInBackground:]: unrecognized selector posted to class 0x383b48 '* First call stack Shot: (0x252cdc1f 0x32ad5c8b 0x252d2f55 0x252d0f57 0x25202df8 0x96f0d 0x96f57 0x667ab 0x287bdc2b 0x287bdbd1 0x287a8863 0x287bd63d 0x287bd317 0x287b6be1 0x2878d3dd 0x28a00c29 0x2878be39 0x25294377 0x25293787 0x25291ded 0x251e0211 0x251e0023 0x2c5930a9 0x287ec1d1 0x38d75 0x33055aaf) libS ++ abi.dylib: completion with uncaught exception type NSException

the framework I have (which is for parsing) is FacebookSDK Bolts ParseFacebookUtils Parse

Please, help

+3


source to share


1 answer


Try to replace

[PFFacebookUtils logInWithPermissions:@[] block:^(PFUser *user, NSError *error)

      



from

 [PFFacebookUtils logInWithPermissions:permissionsArray block:^(PFUser *user, NSError *error)

      

0


source







All Articles