About the access_token request


#1

Hello, I am currently implementing a Sign In With Twitter functionnality, I managed to deal with the request_token but I’m stuck with the access_token.
My url :

http://twitter.com/oauth/access_token?oauth_consumer_key=vMTuvpBlvhEHBd4zhAw7wA&oauth_nonce=o27Tk&oauth_signature=aoh8HrNtv9YhR8SMd%2BOfESn0WtE%3D&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1350655442&oauth_token=aIZlckZks2932WYMbgOaxFmPlicP8n8Pn0n1yGQDg&oauth_verifier=4282521

It works well if I copy/paste the link in a browser, but I always get a
" Uncaught Error: NETWORK_ERR: XMLHttpRequest Exception 101 "

Do you have any idea ?


#2

You’ll find the entire process easier to manage if you use HTTP headers instead of query string parameters for auth.

Keep in mind also that you’re using a retired URL. You want https://api.twitter.com/oauth/access_token (and the api subdomain for all requests in this process).