Facebook Python SDK Integration with Django

What is the most efficient way to integrate Facebook Python SDK with Django authentication system? Or should I not do this at all and create my own user models?

Basically, I use the JavaScript JavaScript SDK to actually sign up users. Right now, when the JavaScript SDK creates a cookie, I'm using the Python SDK to get the URL of the user profile, access token and other data ( facebook.get_user_from_cookie ), after which I insert it into the database using custom Django data models.

PS: If any modern application / middleware that does this automatically would be great :)

Thanks.

+4
source share
1 answer

I got lucky with django-socialregistration .

+2
source

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


All Articles