Alon Gubkin
Alon Gubkin

Reputation: 57129

Integrating Facebook Python SDK with Django

What is the most efficient way to integrate Facebook Python SDK with Django's authentication system? Or 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.

Upvotes: 4

Views: 2360

Answers (1)

Joe
Joe

Reputation: 26777

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

Upvotes: 2

Related Questions