When attempting to do anything with the twitter gem inside of my rails console. I saw that this was a bug sometime ago but I don't know if I am just doing something wrong of if this bug has resurfaced again.
I am hoping someone can help me figure out what is going wrong.
Here is what I have done so far:
config/initializers/twitter.rb
$twitter = Twitter::REST::Client.new do |config|
config.consumer_key = ENV["CONSUMER_KEY"]
config.consumer_secret = ENV["CONSUMER_SECRET"]
config.access_token = ENV["ACCESS_TOKEN"]
config.access_token_secret = ENV["ACCESS_SECRET"]
end
Ensured that all of the environment variables show the expected keys.
Then tried to post an update to my timeline
vmcilwain [twitter_integration] $rails c
twitter.update('check 1, 2, 3')
Twitter::Error::Forbidden: Unable to verify your credentials
I also got this same error when attempting
$twitter.user('username')
I'm wondering if anyone can provide me with any suggestions on how to debug this.
Thanks