If you store the application key and the Twitter secret key and both its iphone application and your server, and then somehow transfer the user token (also called the “access token”) key / secret from the iphone application to the server, then you can make the same type of api calls from the server.
consumer = OAuth::Consumer.new(app_key, app_secret, …) access_token = OAuth::AccessToken.new(consumer, user_key, user_secret) response = access_token.get('/stuff.xml')
So, is it okay to transfer this information from the application to the server? If you do it safely, and while waiting for the user how the application works, then this is an absolutely wonderful use of oauth.
Perhaps this is not allowed by the terms of service of Twitter - I could imagine that there is something that says that you can’t transmit the user's access secret over the network or some such thing. (general wild speculation, I don't think it is particularly likely in this case)
source share