Android Twitter with oauth-signpost error Authoriz

2019-05-05 21:46发布

Hello im tryin to use Twitter with OAuth but i receive this exception

Authorization failed (server replied with a 401). This can happen if the consumer key was not correct or the signatures did not match.

im using this sample http://code.google.com/p/oauth-signpost/wiki/TwitterAndSignpost

Error Line: String authUrl = provider.retrieveRequestToken(consumer, OAuth.OUT_OF_BAND);

3条回答
疯言疯语
2楼-- · 2019-05-05 21:48

this will not happen only for this reason ::

Authorization failed (server replied with a 401). This can happen if the consumer key was not correct or the signatures did not match.

another reason is ::

your Device date and time are incorrect.

查看更多
唯我独甜
3楼-- · 2019-05-05 21:48

You have to enable Callback URL on Twitter app settings (https://apps.twitter.com/app/123456/settings)

type into Callback URL: http://www.google.com /whatever/

And tada!

查看更多
做个烂人
4楼-- · 2019-05-05 21:55

i have the same error same consumer Key and secreat key is working in iphone but when i set this to my android app it dispaly this error message. Authorization failed (server replied with a 401). This can happen if the consumer key was not correct or the signatures did not match.

查看更多
登录 后发表回答