ruby on rails 3 - Twitter::Error::Forbidden - Unable to verify your credentials -


i'm using devise + omniauth , can connect twitter api correctly.

but when try use twitter gem, have following error in console :

"twitter::error::forbidden - unable verify credentials"

i have installed gem , created initializer @ config/initializers/twitter.rb

twitter.configure |config|     config.consumer_key = pke41...     config.consumer_secret = qety..... end 

and i'm trying controller :

def twitter     @twitter_home_timeline = twitter.home_timeline end 

ok, found answer... keys in initializer must set quotation marks :

twitter.configure |config|     config.consumer_key = 'pke41...'     config.consumer_secret = 'qety.....' end 

Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -