开发者

Integrating Facebook Python SDK with Django

开发者 https://www.devze.com 2023-02-06 17:22 出处:网络
What is the most efficient way to integrate Facebook Python SDK with Django\'s authentication system? Or 开发者_Python百科shouldn\'t I do this at all and create my own users models?

What is the most efficient way to integrate Facebook Python SDK with Django's authentication system? Or 开发者_Python百科shouldn't I do this at all and create my own users models?

Basically, I'm using the Facebook JavaScript SDK for actually signing users on. Right now, when the JavaScript SDK creates the cookie, I'm using the Python SDK for getting the user's Profile Url, Access Token and other data (facebook.get_user_from_cookie), and after that I'm inserting it to the database using custom Django data models.

P.S: If there's any up-to-date app/middleware that does this automatically that'd be great :)

Thanks.


I've had good luck with the django-socialregistration app.

0

精彩评论

暂无评论...
验证码 换一张
取 消