Feedback

NOTE: the code I use works fine on iOS 5. Nothing has changed.

When going through twitter reverse auth movements, I get this error:

<?xml version="1.0" encoding="UTF-8"?> <errors> <error code="89">Error processing your OAuth request: invalid signature or token</error> </errors> 

I verify that my tokens and other credentials are valid. The only difference here is that I am using iPhone 5 and / or that I am on iOS 6.

+4
source share
3 answers

I realized that on iPhone 5 TWRequest just does not add oauth_token to the authorization header. Hopefully this will be fixed soon ...

Update: after deleting my Twitter account from my iPhone, it seems to be working now. I also cleared my caches from Safari (maybe this could be a fix).

+4
source

On my iOS 7 device, this happens when the Twitter username / password stored on the phone (accessible from the Settings app) is outdated / incorrect.

I was confused because I worked for some accounts, and not for others. You will find out if the account information is incorrect, because it reports this immediately after accessing the account in the Settings application.

+2
source

The first thing to check . Make sure your server does not reject the token, because the length is too long. This was a problem for me. For some reason, the token on the iPhone 5 was longer than the iPhone 4.

The second thing to check . Have you registered your Twitter application to use reverse auth? You need to get permission.

Your application keys were not enabled for rights with reverse auth mode

See the documentation for this. https://dev.twitter.com/docs/ios/using-reverse-auth If you do not have permission to use reverse auth, this will not work.

0
source

Source: https://habr.com/ru/post/1439874/


All Articles