Valid OAuth redirect URIs for facebook - Django Social Auth

I mean tutorials for implementing django social-auth, I have successfully implemented it for Twitter and Google+. But, in the case of facebook, I do not see the "Valid OAuth redirect URIs" that should be provided for facebook. I assume the new facebook developer console has this new field.

If you leave the field empty, I can still enter, but I do not receive relevant data from FB. This may be due to this "redirect URI".

enter image description here

I read below tutorials

, " http://localhost:8000/oauth/complete/facebook/" URI, google + twitter, .

-, , URL- , Facebook Django

+4
1

, Django redirect_state, Facebook.

:

  • Facebook OAuth, redirect_state:

    from social_core.backends.facebook import FacebookOAuth2
    
    class CustomFacebookOauth(FacebookOAuth2):
        REDIRECT_STATE = False
    
  • social_core.backends.facebook.FacebookOAuth2 CustomFacebookOauth AUTHENTICATION_BACKENDS settings.py.

0

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


All Articles