Google Plus无法创建帖子。稍后再试

时间:2013-11-04 14:01:48

标签: ios google-plus

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

enter image description here

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

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

先谢谢了

1 个答案:

答案 0 :(得分:2)

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