OAuth Ticket Failed (Request token) on iOS, why does this happen?


I am using Twitter+OAuth which uses MGTwitterEngine and SAOAuthTwitterEngine.

My app works great in the simulator, and on iPhone / iPod, I’ve only got iOS 5 to test on devices but I’ve set up my code so that if there is no twitter account in the system, or the app cannot use it, it uses this “fallback”.

The problem is I am getting the following error message:

“The request token for this page is invalid. […]”

This occurs in the modal web view that pops up to “authorise” the application with your login. I have been tracking and debugging and the error occurs for the iPad and the console is identical between my iPhone and iPad, here is the flow:

Methods called:
• requestRequestToken (SA_OAuthTwitterEngine class)
• requestURL:token:onSuccess:onFail: (SA_OAuthTwitterEngine class)

iPad gets to fail, iPhone to success, (100% of the time). The url for the request I am using is: https://api.twitter.com/oauth/request_token

Please refer to my stack overflow entry for screenshots: http://stackoverflow.com/questions/9396323/twitter-request-token-invalid-on-ios


Are there any differences between the two machines like the date & time settings? What’s the oauth_callback value you’re using on the request token step?


Hi i am using ios6 when i am going to login through twitter i am getting the following error like this:
Request E4A5CE1B-AB7D-443E-ABB0-C0943ECF31E0 failed with error: Error Domain=NSXMLParserErrorDomain Code=4 “The operation couldn’t be completed. (NSXMLParserErrorDomain error 4.)”

can u guys plz help me?