Open simonmorley opened 13 years ago
Hi
Your recent commit to incorporate the latest Twitter gem was still not working for me. I've modified twitter.rb controller with the following:
require 'twitter' class TwitterToken < ConsumerToken TWITTER_SETTINGS={:site=>"http://api.twitter.com", :request_endpoint => 'http://api.twitter.com',} def self.consumer @consumer||=OAuth::Consumer.new credentials[:key],credentials[:secret],TWITTER_SETTINGS end def client Twitter.configure do |config| config.consumer_key = TwitterToken.consumer.key config.consumer_secret = TwitterToken.consumer.secret config.oauth_token = token config.oauth_token_secret = secret end @client ||= Twitter::Client.new end end
I hope this helps someone, I was stuck for hours..
Hi
Your recent commit to incorporate the latest Twitter gem was still not working for me. I've modified twitter.rb controller with the following:
I hope this helps someone, I was stuck for hours..