当我尝试在IOS应用程序上打开本机GPP共享对话框时,出现以下错误:
使用基于网络的共享可以按预期工作。这是我的代码:
- (IBAction)shareGooglePlus:(id)sender {
GPPSignIn *signIn = [GPPSignIn sharedInstance];
signIn.clientID = kClientID;
signIn.scopes = [NSArray arrayWithObjects:
kGTLAuthScopePlusLogin,
nil];
signIn.delegate = self;
if (![signIn trySilentAuthentication]){
[signIn authenticate];
}
}
- (void)finishedWithAuth: (GTMOAuth2Authentication *)auth
error: (NSError *) error
{
id<GPPShareBuilder> shareBuilder = [[GPPShare sharedInstance]
nativeShareDialog];
}
先谢谢了
答案 0 :(得分:2)
您是否在API控制台项目中为该客户端ID启用了Google+ API?