WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

@scottsampson
Copy link

@scottsampson scottsampson commented Feb 16, 2011

If you add the following to your config options the callback url will take you back to the /users page of your project and then work with devise.

twitter.consumer_secret = <YOUR CONSUMER SECRET>
twitter.consumer_key  = <YOUR CONSUMER KEY>
twitter.options({
  :site => 'http://twitter.com',
  :oauth_callback => (BASE_URL.end_with?('/') ? BASE_URL[0..-2] : BASE_URL)  + '/users',
  :oauth_callback_confirmed => 'true'
 })

Then set BASE_URL in your environments files. For my dev environment it would be something along the lines of:

BASE_URL = "http://localhost"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant