views:

1533

answers:

1

I was wondering if anyone got this working. I am trying to do a basic authentication but for some reason it keeps complaining "Could not authenticate you.". How would I go about getting it to run with OAUTH?

+2  A: 

I have a tutorial written for this a while back. You can get it on my blog here, it's lengthy so I won't repost it here

DroidIn.net
I am very new to the OAuth concepts. I am trying to read but I don't understand what OAUTH_VERIFIER is and where to define that. Could you provide me a bit of help on that?
Legend
Also, it keeps giving me "oauth.signpost.exception.OAuthExpectationFailedException: Request token or token secret not set in server reply. The service provider you use is probably buggy." no matter how I try to do it... I checked your blogpost but I still seem to be doing something wrong. Any suggestions on that regard?
Legend
OAUTH_VERIFIER is nothing more than a static String`public static final String OAUTH_VERIFIER = "oauth_verifier"`The way Twitter's OAuth works (in the nutshell) - when you register your app w/Twitter you are given a request token. With that token your user can go to the Twitter site and exchange his credentials + request token for the authentication token which your Android app will save and use on user's behalf to grant user access to Twitter API.
DroidIn.net
BTW - app you register on Twitter and your own Android app are not the same it's 2 totally different things
DroidIn.net