I am developing a mobile app using HTML5 + PhoneGap (there’s not ANY backend server side).
I’m using OAuthSimple Library to sign in but I can’t get the last step to get the access_token. Did anybody used this library and got it ? Can you give me a code sample?
I’ve red the following doc but it was not helpful al all:
https://dev.twitter.com/docs/auth/oauth#Acquiring_a_request_token
Thks!
Hi guys thanks for your comments. I’ve figured out this issue. I was not doing a good sign. Once I’ve completed the authorization step, I’ve used the new auth token and it’s working now. Next I’ll paste you an extract of code with the solution: var signed = Oauth.sign({ action: “GET”, path: accessTokenUrl, method:’HMAC-SHA1′, parameters: { oauth_verifier: pin /* obtained by the user / }, signatures: requestTokenResponse / once it’s authorized */ });