Hi,
I apologize for cross-posting this, but I am desperately looking for
an answer. I am trying to get OAuth working with Twitter. I am not
sure what I am wrong? When I use the code below I get redirected to
the twitter site but am told, 'Sorry, that page doesn’t exist!'
If I type this out in IRB everything seems to look fine. Can some
please tell me what I am doing wrong?
class HomeController < ApplicationController
def index
@consumer = OAuth::Consumer.new( "bLMyOfJI9szbXTJQnXKA",
"y1rCwxIVkaMm41S6SYEy9uYR5oiAUxToPvQUlMd6g9A",
{ :site=>"
http://twitter.com/oauth/request_token" } )
@request_token = @consumer.get_request_token
session[:consumer] = @consumer
session[:request_token] = @request_token
redirect_to @request_token.authorize_url
end
end
Kind Regards,
Rajinder Yadav