question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Twitter login not working

See original GitHub issue

Twitter change the callback policy, now when I try to login my callback “oauth/complete/twitter/” not work and twitter return error 403:

`

Request Method: GET
https://homely-dev.herokuapp.com/en/oauth/login/twitter/
1.11.10
HTTPError
403 Client Error: Forbidden for url: https://api.twitter.com/oauth/request_token
/app/.heroku/python/lib/python2.7/site-packages/requests/models.py in raise_for_status, line 935
/app/.heroku/python/bin/python
2.7.14
[‘/app’, ‘/app/.heroku/python/bin’, ‘/app’, ‘/app/.heroku/python/lib/python27.zip’, ‘/app/.heroku/python/lib/python2.7’, ‘/app/.heroku/python/lib/python2.7/plat-linux2’, ‘/app/.heroku/python/lib/python2.7/lib-tk’, ‘/app/.heroku/python/lib/python2.7/lib-old’, ‘/app/.heroku/python/lib/python2.7/lib-dynload’, ‘/app/.heroku/python/lib/python2.7/site-packages’]
Wed, 13 Jun 2018 12:14:52 +0200

`

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:9
  • Comments:22

github_iconTop GitHub Comments

11reactions
DavidTocacommented, Jun 13, 2018

I had the same issue and I did solve it by adding

https://mydomain.com/complete/twitter/

to the valid callback url on the twitter app config at https://apps.twitter.com/

7reactions
arjunthakur08commented, Jun 24, 2018

Upgrade the following packages to the latest version using pip:

social-auth-app-django
social-auth-core

Steps to follow:

1. Login to you Twitter account 2. Go to https://apps.twitter.com/, and select your application. 3. Select the Settings Tab in the application to configure the Callback URL 4. In the Callback URLs input box, add the following according to the nature of request made: If it is http, without SSL certificate, then add the following:

http://example.com/complete/twitter/
or
http://www.example.com/complete/twitter/

If it is https i.e. it supports SSL certificate (recommended), then add the following:

https://example.com/complete/twitter/
or
https://www.example.com/complete/twiiter/

Note: 1. Make sure the slash( / ) after the twitter is there in the Callback URLs input box 2. Also, replace “example.com” or “www.example.com” with your domain name.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Help with logging in - Twitter Help Center
If you don't have (or aren't logged in to) the Twitter app, try to log in to your Twitter account on twitter.com using...
Read more >
Twitter down or not working? Current status and problems
Real-time overview of problems with Twitter. Can't log in or send tweets? We'll tell you what is going on.
Read more >
Why Doesn't Twitter Let Me Log in on My Mobile Phone?
Clearing the Twitter app's data cache on your device can sometimes resolve login issues. You can also try uninstalling and reinstalling the app...
Read more >
Twitter Login Issues: Why Can't Login into Twitter - Qwitter
Twitter's login process requires an internet connection, and if you find yourself unable to log in or access your account at all, it...
Read more >
Why can't I log into my Twitter account even if my password is ...
Double check the entered username and password and make sure that you have entered them correct. If it still doesn't work, it might...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found