G + SDK给login错误?

我已经实施了Google Plus Api,并在网站中给出login。 但是,当我点击允许访问时login后出现问题,如下所示:

在这里输入图像说明

出现以下消息:

在这里输入图像说明

我的代码如下,请告诉我如果剩下的东西:

- (void)viewDidLoad { self.signInButton.delegate = self; self.signInButton.clientID = kClientId; self.signInButton.scope = [NSArray arrayWithObjects: @"https://www.googleapis.com/auth/plus.me", nil]; SLNetworkAppDelegate *appDelegate = (SLNetworkAppDelegate*) [[UIApplication sharedApplication] delegate]; appDelegate.signInButton = self.signInButton; share =[[GPPShare alloc] initWithClientID:kClientId]; share.delegate = self; // optional appDelegate.share=share; [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. } - (IBAction) didTapShare: (id)sender { [[[[share shareDialog] setURLToShare:[NSURL URLWithString:@"https://developers.google.com/+/mobile/ios/getting-started"]] setPrefillText:@"testing share via google plus"] open]; // Or, without a URL or prefill text: [[share shareDialog] open]; } In App delegate file: - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation { if ([signInButton handleURL:url sourceApplication:sourceApplication annotation:annotation]) { return YES; } if ([self.share handleURL:url sourceApplication:sourceApplication annotation:annotation]) { return YES; } return NO; } 

你必须在你的项目中分配你的项目中的redirecturi,这样你的包ID就可以了,所以如果你的应用程序成功通过Safari浏览器启动,

在这里输入图像说明

将捆绑ID作为标识符和URLSchemes …