Estoy usando el inicio de sesión en Twitter para ingresar a mi aplicación. Pero cuando hago clic en el botón de Twitter, se abre la página de Twitter, pero me da el siguiente error:Error al usar Twitter para iniciar sesión en la aplicación de mi iPhone
WHOA there!!! This page is no longer valid.it looks like someone already used the token information you provide.please return to the site tht sent you to this page or try again. it was an probably an honest mistake.
-(void)twitterclick
{
SA_OAuthTwitterEngine *_engine = [[SA_OAuthTwitterEngine alloc] initOAuthWithDelegate:self]; engine.consumerKey=[[NSString alloc]init];
_engine.consumerSecret=[[NSString alloc]init];
_engine.consumerKey = @"App consumer key";
_engine.consumerSecret = @"App Consumer secret";
UIViewController *controller = [SA_OAuthTwitterController controllerToEnterCredentialsWithTwitterEngine: _engine delegate: self];
if (controller)
[self presentModalViewController:controller animated:YES];
}
¿Cómo puede ocurrir resolver esto?
¿Qué es 'botón de twitter'? ¿Qué 'página de twitter'? ¿Qué 'login de Twitter'? ¿Estás usando OAuth en MGTwitterEngine? Realmente necesita proporcionar más información que esta. –
- (void) twitterclick { SA_OAuthTwitterEngine * _engine = [[SA_OAuthTwitterEngine alloc] initOAuthWithDelegate: self]; engine.consumerKey = [[NSString alloc] init]; \t _engine.consumerSecret = [[NSString alloc] init]; \t \t _engine.consumerKey = @ "Clave del consumidor de la aplicación"; \t _engine.consumerSecret = @ "App Consumer secret"; \t \t UIViewController * controller = [SA_OAuthTwitterController controllerToEnterCredentialsWithTwitterEngine: _engine delegate: self]; \t \t si (controlador) \t \t \t \t \t \t [libre presentModalViewController: controlador animada: YES]; } sí, estoy usando OAuth en MGTWitterEngine –