Twitter API - oauth gem - don't get callback

I am redirecting the user of my application on Twitter for oauth-style authentication using my request_token application. The user can enter the username and password on the Twitter page, but instead of redirecting my application, Twitter displays the page

You have successfully granted access to MyAppName!

Just go back to MyAppName and enter the following PIN to complete the process. 123456

Why is this happening?

I set the callback url in my application settings.

thank

+3
source share
2 answers

The same thing happens to me. I just found a solution.

oauth_callback, .

. oauth, , 29/04/2010

. http://blog.brijeshshah.com/integrate-twitter-oauth-in-your-rails-application/comment-page-1/

@request_token = UsersController.consumer.get_request_token(:oauth_callback => "callback-url-of-your-twitter-app")
+4

PIN-, , , . http://apiwiki.twitter.com/Authentication. , twitter: http://twitter.com/apps/, Twitter Edit Application Settings, Application Type Browser.

+3

Source: https://habr.com/ru/post/1732133/


All Articles