Comments (2)
You need to pass in the request token and secret on your step 2, rather than the consumer token and secret. My code looks like this:
- oauth = Twitter::OAuth.new(consumer_key, consumer_secret)
oauth.set_callback_url(whatever_your_receiver_route_is_url)
session['rtoken'] = oauth.request_token.token
session['rsecret'] = oauth.request_token.secret
redirect_to "http://#{oauth.request_token.authorize_url}" - oauth = Twitter::OAuth.new(consumer_key, consumer_secret)
oauth.authorize_from_request(session['rtoken'], session['rsecret'], params[:oauth_verifier])
@Profile = Twitter::Base.new(oauth).verify_credentials
from twitter-ruby.
Ah. I'll take a look. Thanks.
from twitter-ruby.
Related Issues (20)
- Cannot add Quick Replies to welcome message
- Public metrics Support HOT 1
- Issue installing with gem HOT 1
- callback token is null HOT 1
- OAuthActivity Must initialize Twitter before using getInstance
- Bulutdp HOT 2
- Oauth2 access token secret for Twitter
- Getting users who liked a tweet
- ruby 3+ and t/twitter result in a lot of frozen string errors HOT 2
- review gitflow
- Tweet
- API V2.0 support HOT 10
- Code is not able to compile HOT 1
- Could not authenticate you HOT 3
- Why there are ellipsis on long messages? HOT 1
- The .user method returns a 403 forbidden and needs to be upgraded HOT 2
- update with media returns 403
- Undefined method `id' for nil:NilClass
- Changelog.md says minimum required version is 2.7.7 HOT 1
- Could not authenticate you
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from twitter-ruby.