0
我试图执行Facebook登录与解析,我得到以下错误信息:使用解析登录到Facebook时出错
[错误]:权限拒绝此操作。 (代码:119,版本:1.14.2)
我已经将我的应用程序的Facebook应用程序ID添加到我的Parse应用程序的设置页面,将我的应用程序链接到Facebook SDK,并将FacebookAppID和URL Scheme值添加到我的。 plist文件。
这是我用来尝试和登录的代码(直接来自Parse)。 http://parseplatform.github.io/docs/ios/guide/#log-in--sign-up
NSArray *permission = [NSArray arrayWithObjects:@"public_profile", @"email", @"user_friends", nil];
[PFFacebookUtils logInInBackgroundWithReadPermissions:permission block:^(PFUser *user, NSError *error) {
NSLog(@"Error: %@", error.description);
if (user) {
NSLog(@"Uh oh. The user cancelled the Facebook login.");
} else if (user.isNew) {
[self performSegueWithIdentifier:@"signInSuccessful" sender:nil];
NSLog(@"User signed up and logged in through Facebook!");
} else {
[self performSegueWithIdentifier:@"signInSuccessful" sender:nil];
NSLog(@"User logged in through Facebook!");
}
}];
是否提示您在Facebook上允许您的应用程序? –
是的!它向我显示了应用程序请求的字段的摘要屏幕,并且我批准了它们。然后,当我下次启动应用程序并出现Facebook窗口时,它表示该应用程序已获得授权。 当我进入我的Facebook设置时,我可以在那里看到应用程序。 –
你使用parse.com服务还是parse-server(开源)? –