views:

93

answers:

1

Hey,

I have an iPhone app which currently loads up a UIWebView using the facebook graph api oauth url (https://graph.facebook.com/oauth/authorize?...) - a user then enters their login details, and on submitting I retrieve the the access token from the URL. (In a manner as this I believe http://www.capturetheconversation.com/technology/iphone-facebook-oauth2-graph-api) This is then passed to my java server which performs the various actions using RestFB

My question is, is there a similar way to do this with Twitter? Currently it seems the only way to get the data is to download a library and use that; yet this is an approach I would rather not use as it would take up unnecessary space seeing as all the commands will actually be run from my Java server.

Any advice would be greatly appreciated

Thanks,

Dan

+2  A: 
Andrew Kovzel
Awesome, thanks for that! I've currently got a situation running where it reads a PIN number from the website after the user has entered their login details, and gets the oauth token using that. I'll try your code and see if that works a bit better! I'll post what I'm using later also. :)
Dan