简体   繁体   English

无法在iOS上使用Facebook登录

[英]can't login with facebook on iOS

I am trying to login to a facebook account without the admin and test user I have been testing with. 我正在尝试以没有管理员和测试用户的身份登录到Facebook帐户。 This is using the Parse.com framework facebook login utility. 这是使用Parse.com框架的Facebook登录实用程序。 I get the error: 我得到错误:

NSLocalizedDescription=User is not a test user owned by the application

My code to authenticate with facebook is hitting this condition: 我要在Facebook上进行身份验证的代码遇到这种情况:

[PFFacebookUtils logInWithPermissions:nil block:^(PFUser *user, NSError *error) {
        if (!user) {
            NSLog(@"User doesn't exist");
            NSLog(@"%@", error);
            UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"Error"
                                                                message:error.localizedDescription
                                                               delegate:nil
                                                      cancelButtonTitle:@"OK"
                                                      otherButtonTitles:nil];
            [alertView show];
        }

I have set my app to: "Live and Available to All Users" in the facebook developer app dashboard. 我在Facebook开发人员应用程序信息中心中将我的应用程序设置为“对所有用户实时可用”。

Why am I receiving this error and how do I allow my app to be logged in by any user with a facebook account? 为什么我会收到此错误?我如何允许具有Facebook帐户的任何用户登录我的应用程序?

问题是我已经使用无效的帐户登录了模拟器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM