2013-11-04 97 views
1

嘗試當我嘗試打開我的IOS應用程序,我有以下錯誤本地GPP份額對話框:Google Plus無法創建帖子。稍後

enter image description here

使用基於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]; 
} 

感謝在先進

回答

2

你有在該客戶端ID API控制檯項目啓用了Google+ API?