1

当我尝试在我的 IOS 应用程序上打开本机 GPP 共享对话框时,出现以下错误:

在此处输入图像描述

使用基于 Web 的共享确实可以按预期工作。这是我的代码:

- (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];
}

先谢谢了

4

1 回答 1

2

您是否在 API 控制台项目中为该客户端 ID 启用了 Google+ API?

于 2013-11-04T15:21:24.187 回答