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.

Problem with Instagram authentication if user is not logged to instagram beforehand

See original GitHub issue

I have a weird problem with Instagram OAuth in two apps - one using latest and one bit old python-social-auth. If a user tries to login with Instagram then subsequent access_token request will fail:

400 Client Error: Bad Request for url: https://api.instagram.com/oauth/access_token

but only if the user isn’t logged in to Instagram beforehand. If you login to instagram while in the process of oauth login it fails, but if you try again it passes. If you login to instagram beforehand and try it passes.

Anyone noticed this behavior?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:6

github_iconTop GitHub Comments

2reactions
leosharkparkcommented, Nov 24, 2018

I found that adding REDIRECT_STATE = False to social_core.backends.instagram.py solves the issue (at least in local). When will this be fixed? @omab

1reaction
EralpBcommented, Aug 27, 2018

This issue is pretty huge, what is the solution? Happens 100%.

Read more comments on GitHub >

github_iconTop Results From Across the Web

I Can't Log In - Instagram Help Center
1. On the login screen, tap Get help logging in. · 2. Enter the username, email address, or phone number associated with your...
Read more >
8 Fixes for Instagram Won't Let Me Login Error on Mobile and ...
1. Common Solutions · Too much user activity can lead to temporary account access denial. · Make sure you are entering the correct...
Read more >
Why do I keep getting the 'Sorry, we couldn't log you in ... - Quora
1 . Check your account is not logged in on another device 2. Check your network. 3. If you are you using the...
Read more >
Instagram Not Sending Security Code to Log In - Thunderclap
How to Fix Instagram Security Code Issues · Check Your Network Connectivity · Try from Incognito Mode · Use an Alternate Verification Mode...
Read more >
Recover an account protected by 2-Step Verification
If 2-Step Verification is enforced at your company, administrators or users won't be able to sign in to their accounts if they lose...
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