我解決了這個問題!我不得不創建GTMOAuth2WindowController
這樣的:
GTMOAuth2Authentication *auth = [GTMOAuth2SignIn standardGoogleAuthenticationForScope:kGTLAuthScopePlusLogin clientID:kClientID clientSecret:kClientSecret];
NSString *authURLString = [[[GTMOAuth2SignIn googleAuthorizationURL] absoluteString] stringByAppendingString:@"?request_visible_actions=http://schemas.google.com/AddActivity"];
NSBundle *frameworkBundle = [NSBundle bundleForClass:[GTMOAuth2WindowController class]];
GTMOAuth2WindowController *windowController = [GTMOAuth2WindowController controllerWithAuthentication:auth
authorizationURL:[NSURL URLWithString:authURLString]
keychainItemName:nil
resourceBundle:frameworkBundle];
你可以告訴我怎麼你設置了谷歌加時刻POST請求?我的工作不正常:((http://stackoverflow.com/questions/24061521/cannot-insert-moment-google-plus-api) – Supertecnoboff