videos ven subir salen puedo porque pixelados mis los estados estado borrosos objective-c google-api oauth-2.0 google-plus google-oauth

objective c - ven - Google Plus no puede publicar un momento



porque no puedo subir estados en whatsapp (1)

Tengo el mismo problema pero en el lado del servidor. Su solicitud de Oauth debe incluir el parámetro request_visible_actions al redirigir al usuario a la página de autenticación. Pagar mi pregunta y diff para php client.

Después de la autorización de Google intento publicar un momento sin confirmaciones:

GTMOAuth2Authentication *auth; auth = [GTMOAuth2ViewControllerTouch authForGoogleFromKeychainForName:TMH_SOCIAL_GOOGLE_KEYCHAIN clientID:TMH_SOCIAL_GOOGLE_CLIENTID clientSecret:TMH_SOCIAL_GOOGLE_SECRET]; if ([auth canAuthorize]) { NSString *postString = @"{/"type/":/"http://////schemas.google.com///AddActivity/",/"target/":{/"id/":/"tmhabc/",/"type/":/"http://////schemas.google.com///AddActivity/",/"description/":/"First post description/",/"name/":/"First post/"}}"; NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@"https://www.googleapis.com/plus/v1/people/me/moments/vault?access_token=%@&key=%@", auth.refreshToken, TMH_SOCIAL_GOOGLE_APIKEY]]; NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url]; [request setValue:@"application/json" forHTTPHeaderField:@"Content-Type"]; GTMHTTPFetcher *myFetcher = [GTMHTTPFetcher fetcherWithRequest:request]; [myFetcher setAuthorizer:auth]; [myFetcher setPostData:[postString dataUsingEncoding:NSUTF8StringEncoding]]; [myFetcher beginFetchWithCompletionHandler:^(NSData *retrievedData, NSError *error) { if (error == nil) { NSLog(@"OK %@", [[NSString alloc] initWithData:retrievedData encoding:NSUTF8StringEncoding]); } else { NSLog(@"%@", error.localizedDescription); } }]; }

Pero recibe un error 401: la operación no pudo completarse. (com.google.HTTPStatus error 401.)

Intento esto:

  1. Otorgar permisos para Google Plus en Apis Console
  2. Autorice con el alcance " https://www.googleapis.com/auth/plus.login "
  3. En la Web solo encontré esta respuesta: http://gusclass.com/blog/2013/02/27/common-issues-for-the-new-google-platform-release/ guy en esta publicación sugiere usar "data- requestvisibleactions "(pero cómo hacer esto en el objetivo c)

No sé lo que está mal.

Actualizar

https: //developers.google.com/+/api/latest/moments/insert#try-it no funciona para insertar momento.