OAuth::Unauthorized: 403 Forbidden error


#1

got an error when finding token

this is my code
@ctoken = TWITTER_CONFIG[:consumer_token]
@csecret = TWITTER_CONFIG[:consumer_secret]
@call_back_url = TWITTER_CONFIG[:callback_urls]
@consumer = OAuth::Consumer.new(@ctoken,@csecret,{:oauth_callback => @call_back_url,:site => ‘http://api.twitter.com’})
@request_token = @consumer.get_request_token :oauth_callback => @call_back_url
consumer_secret: 84dGQmPuC2UTHtcb3BESnP1RXrNPiRxwpyvbj0ySPAI
consumer_token: DnM6Rlv2yY8AVblW3jBOg
user_token: 227641253-8UlYK6EJt8B3E08zWauD0rUnK2ADkBzx1HbvPRZ9
user_secret: Wn1XyLf3rI3jm3sLLflnae7dI6rofDn5ZecJm0sSVCLc6
callback_urls: http://127.0.0.1:3003/twitterauth

pls help me find a better solution


#2

@ctoken = TWITTER_CONFIG[:consumer_token]
@csecret = TWITTER_CONFIG[:consumer_secret]
@call_back_url = TWITTER_CONFIG[:callback_urls]
@consumer = OAuth::Consumer.new(@ctoken,@csecret,{:oauth_callback => @call_back_url,:site => ‘http://api.twitter.com’})
@request_token = @consumer.get_request_token :oauth_callback => @call_back_url
got an error at “@request_token = @consumer.get_request_token :oauth_callback => @call_back_url”… pls help me to find solution


#3

Gaon4444@gmail.com


#4

pls help me find a better solution for this