简体   繁体   中英

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. This is using the Parse.com framework facebook login utility. 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:

[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.

Why am I receiving this error and how do I allow my app to be logged in by any user with a facebook account?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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