How can I create Django web page to connect Facebook login and registration?

15 views
Skip to first unread message

Nge Nge

unread,
Mar 17, 2011, 11:18:38 AM3/17/11
to Django users

Hi All!
I want to create Django web project. I have to connect from my Django
project to Facebook via login and registration when user login or
register on my web site.
Please guide what need for me because I am a beginner on Django and
Python.
Although I read via online about Django connect facebook, I confuse
how to apply plug in Django library on my project.
How can I get user data from Facebook after user permission?

Thanks
Nge

Shawn Milochik

unread,
Mar 17, 2011, 11:30:46 AM3/17/11
to django...@googlegroups.com
It's easy to create an authentication backend:

http://docs.djangoproject.com/en/1.2/topics/auth/#writing-an-authentication-backend

If you know (or can figure out) what code you have to write in order
to authenticate against Facebook, just drop that code into your custom
authentication backend and you'll be all set.

Shawn

Calvin Spealman

unread,
Mar 17, 2011, 12:35:15 PM3/17/11
to django...@googlegroups.com
Nge,

You should check out the excellent django-socialauth project, which can provide all the hookup you need to authenticate via Facebook (or twitter, linkedin, and others).


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.




--
Read my blog! I depend on your acceptance of my opinion! I am interesting!
http://techblog.ironfroggy.com/
Follow me if you're into that sort of thing: http://www.twitter.com/ironfroggy
Reply all
Reply to author
Forward
0 new messages