I am using the ruby twitter gem and oauth to gain access to users twitter accounts. In my code, I have:
unless @user.twitter_authd? oauth = Twitter::O
Twitter doesn't allow localhost as part of a valid callback URL.
localhost
Instead use http://127.0.0.1:3000/auth/twitter/callback
http://127.0.0.1:3000/auth/twitter/callback
Hope this helps