Giter Site home page Giter Site logo

Comments (12)

tjcrowley avatar tjcrowley commented on June 1, 2024 1

Also: I have added both our dev and www servers to the Facebook callback URLs.

from social-app-django.

imbaggaarm avatar imbaggaarm commented on June 1, 2024 1

@imbaggaarm it may happen due to many different reasons, but mainly due to social-app not expecting some responses from some providers.
You should track your particular case to see what is coming back and then do something about this.

I'm not pretty sure about the sources of this error, I switched to django-allauth this evening and also had some troubles with the production even when in the localhost, it works well. So I spent almost 1 hour to search for the solution, and I solved it by setting the ACCOUNT_DEFAULT_HTTP_PROTOCOL = True in settings. I think maybe this problem also comes from that source too, I haven't tried to come back to this library in order to test it, but maybe you can try setting the SOCIAL_AUTH_REDIRECT_IS_HTTPS = True in settings. :))

from social-app-django.

HoncyLee avatar HoncyLee commented on June 1, 2024 1

Long story short, just add these two line in settings.py, to force your main app and SOCIAL_AUTH using HTTPS as required by Facebook and GitHub

SOCIAL_AUTH_REDIRECT_IS_HTTPS = True
ACCOUNT_DEFAULT_HTTP_PROTOCOL = True

from social-app-django.

ahmad-tarbeya avatar ahmad-tarbeya commented on June 1, 2024

Same error here 😞

from social-app-django.

keifler avatar keifler commented on June 1, 2024

i'm running into the same error. any resolutions?

from social-app-django.

apardes avatar apardes commented on June 1, 2024

Also running into this issue..

from social-app-django.

Goury avatar Goury commented on June 1, 2024

Any news?
My secret is correct, app is not in development mode, certificate is super valid, yet I am getting the very same error (except with my redirect url)

from social-app-django.

imbaggaarm avatar imbaggaarm commented on June 1, 2024

Really? Nobody solved it even the author? I'm also getting this error :))

from social-app-django.

Goury avatar Goury commented on June 1, 2024

@imbaggaarm I've solved it via adding SOCIAL_AUTH_FACEBOOK_SCOPE = ['email'] to settings and also changing pipeline a bit with some extra exception processing

from social-app-django.

imbaggaarm avatar imbaggaarm commented on June 1, 2024

@imbaggaarm I've solved it via adding SOCIAL_AUTH_FACEBOOK_SCOPE = ['email'] to settings and also changing pipeline a bit with some extra exception processing

But why and when it happens? In my cases, it happens every time. Users can not log in to my website using Facebook =.=. Can you explain more detail about the solution that you used to get over this bug? Thank you very much.

from social-app-django.

Goury avatar Goury commented on June 1, 2024

@imbaggaarm it may happen due to many different reasons, but mainly due to social-app not expecting some responses from some providers.
You should track your particular case to see what is coming back and then do something about this.

from social-app-django.

aroxi avatar aroxi commented on June 1, 2024

Long story short, just add these two line in settings.py, to force your main app and SOCIAL_AUTH using HTTPS as required by Facebook and GitHub

SOCIAL_AUTH_REDIRECT_IS_HTTPS = True ACCOUNT_DEFAULT_HTTP_PROTOCOL = True

thx man, this fixes my error

from social-app-django.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.