# Call back issues with twitter integration

**URL:** <https://www.ruby-forum.com/t/call-back-issues-with-twitter-integration/173821>\
**Category:** Rails\
**Created:** [August 15, 2009, 11:00pm UTC](https://www.ruby-forum.com/t/call-back-issues-with-twitter-integration/173821 "2009-08-15T23:00:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ritvvij](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/bbce88/32.png) [@Ritvvij](https://www.ruby-forum.com/u/Ritvvij)\
**Post date:** [August 15, 2009, 11:00pm UTC](https://www.ruby-forum.com/t/call-back-issues-with-twitter-integration/173821/1 "2009-08-15T23:00:33Z")

</div>

Hi,

development env: ruby on rails  
oauth: 0.3.5  
gem used: twitter\_oauth

My code to call twitter is

client = TwitterOAuth::Client.new(  
:consumer\_key =\> Attribute::CONSUMER\_KEY,  
:consumer\_secret =\> Attribute::CONSUMER\_SECRET)  
request\_token = client.request\_token(:oauth\_callback =\> ‘[http://abc/](http://abc/)  
authorization/’)  
redirect\_to request\_token.authorize\_url

After this, the control goes to  
[http://twitter.com/oauth/authorize?oauth\_token=k](http://twitter.com/oauth/authorize?oauth_token=k)\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

Here the user puts his twitter userid password pressed APPROVE and  
gets redirected to  
[http://twitter.com/oauth/authorize](http://twitter.com/oauth/authorize)

instead of my call back URL.  
Can someone guide why?

---

<div class="post-metadata">

**Author:** ![Ritvvij](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/bbce88/32.png) [@Ritvvij](https://www.ruby-forum.com/u/Ritvvij)\
**Post date:** [August 16, 2009, 12:06am UTC](https://www.ruby-forum.com/t/call-back-issues-with-twitter-integration/173821/2 "2009-08-16T00:06:07Z")

</div>

Can anyone please help?
