RailsCasts Pro episodes are now free!

Learn more or hide this

michaelryap's Profile

GitHub User: michaelryap

Comments by

Avatar

If at 2:45 when Ryan interacts with Twitter methods in the console you receive an "Unable to verify your credentials" error, see this Stack Overflow thread:

http://stackoverflow.com/questions/17719358/twittererrorforbidden-unable-to-verify-your-credentials/17726689#17726689

Steps involve copying and pasting the Twitter.configure block mentioned in the thread into omniauth.rb, then supplying config.oauth_token and config.oauth_token_secret with values from dev.twitter.com.

This is done by generating access tokens. I did this by visiting the Twitter app I created, clicking on the "API Keys" tab, then generating the access tokens at the bottom of the page. Doing so will supply you with values that you can plug into the Twitter.configure block mentioned above.