Hello,
I can't get Oauth to work with Twitter. I have tried the following (all result in the same 401 error):
- jTwitter (using the default OauthSignpostClient)
- jTwitter using the commonshttp library (CommonsOauthProvider) instead of the "DefaultOauthProvider"
- jTwitter using the OauthScribeClient (instead of the OauthSignpostClient)
- oauth-signpost (by itself... no jTwitter)
- Twitter4J
- http://code.google.com/p/agirardello/
- http://dev.bostone.us/2009/07/16/android-oauth-twitter-updates/
- http://github.com/kaeppler/signpost-examples/blob/master/OAuthTwitterExample/src/TwitterMain.java
I've tried my own implementation and copy/pasted the sample code from each of the sites, and nothing seems to work. I'm also 100% sure I also downloaded and included any dependencies (where needed).
Here's the interesting part. Using jTwitter and the oauth-signpost library, I can initiate a connection to Twitter, open a browser window for the user, have them log-in and generate a PIN for my app. When the app goes to post a status update however, (using the pin, and the stored access token and token secret), the 401 error pops up. All other things I've tried won't even let me open a browser window and ask the user to generate a PIN (they die with the 401 error on the request for the "request token").
Please help. Thanks