1
嘗試當我嘗試打開我的IOS應用程序,我有以下錯誤本地GPP份額對話框:Google Plus無法創建帖子。稍後
使用基於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];
}
感謝在先進