GithubHelp home page GithubHelp logo

Comments (6)

maraujop avatar maraujop commented on September 27, 2024

I have been reviewing the app's code and Facebook's oauth process and it looks like this is not a django-social-auth bug, it is a Facebook's bug. As I said before my Site URL is correct, the way you send the redirect_url is correct too, but I get to:

http://127.facebook.com/complete/facebook/?code=....

instead of:

http://127.0.0.1:8000/complete/facebook/?code=....

If I had a wrong redirect_url sent I would get this:

{
   "error": {
      "type": "OAuthException",
      "message": "Invalid redirect_uri: Given URL is not allowed by the Application configuration."
   }
}

But I'm not, so this is one of those problems related to Facebook's love machine, that one that turn's dev's hate and desperation into love :)

Anyways, you might be interested in mentioning this in the README, so others don't think something is broken when testing locally.

Best regards,
Miguel Araujo

from django-social-auth.

omab avatar omab commented on September 27, 2024

Hi,

I think Facebook doesn't accept 127.0.0.1 as a redirect url config, instead what I do is setup myapp.com as redirect url and then edit my /etc/hosts file to map:

127.0.0.1 myapp.com

This is just for testing purposes and should be changed to correct site URL once it's deployed, also helps to have a development Facebook app.

I'll close the report because there's no bug on the app, but we can keep discussing it.

from django-social-auth.

maraujop avatar maraujop commented on September 27, 2024

I didn't know that, but I find it out after debugging the process. I think you should mention this somewhere in the README.

I was going to close it, but I wanted you to read it :) Thanks

from django-social-auth.

omab avatar omab commented on September 27, 2024

Done 5132bc2

Thanks!

from django-social-auth.

maraujop avatar maraujop commented on September 27, 2024

Great app, great developer! If you keep the pace, this will be the most popular social app for Django. I'm recommending it everywhere :)

from django-social-auth.

omab avatar omab commented on September 27, 2024

Thanks for the kind words :D

Yeah, spread the word, that will make this app even better.

Thanks,
Matías

from django-social-auth.

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.