I was trying to run an Authlogic OAuth Twitter example application on my local development machine and kept getting OAuth::Unauthorized (401 Unauthorized) error.
Turns out, you have to register your app as a Twitter OAuth client at http://twitter.com/oauth_clients/. If you’re registering your application as web browser, don’t forget to fill in the callback url. When you’re done, twitter will give your token & secret and you can simply be an oauth consumer using the oauth gem.
At the moment, I’m integrating one of my rails site so that people can login using their twitter account. You can do so by checking out these links
http://dev.twitter.com/pages/oauth_single_token#ruby
http://github.com/jrallison/authlogic_oauth
http://github.com/jrallison/authlogic_example/tree/with-oauth

