当我运行此程序时,应用程序崩溃
[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];
}
}];
这就是日志
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] *由于未捕获的异常'NSInvalidArgumentException'终止应用程序,原因:'+ [PFUser _logInWithAuthTypeInBackground:]:无法识别的选择器发送到类0x383b48' * 第一次抛出调用堆栈: (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) libc ++ abi.dylib:以NSException类型的未捕获异常终止
我拥有的框架(用于解析)是 FacebookSDK 螺栓 ParseFacebookUtils 解析
请帮忙
答案 0 :(得分:0)
尝试替换
[PFFacebookUtils logInWithPermissions:@[] block:^(PFUser *user, NSError *error)
<强>与强>
[PFFacebookUtils logInWithPermissions:permissionsArray block:^(PFUser *user, NSError *error)