Django Facebook by Thierry Schellenbach (http://www.mellowmorning.com)
Login and registration functionality using the new facebook open graph api.
- Actually creates user models and profiles
- Robust facebook user data -> django account conversion
- django.contrib.auth (Django core app, included)
- django-registration
- python-cjson
Define the settings in django_facebook/settings.py
in your settings.py
file.
add
url(r'^facebook/', include('django_facebook.urls')),
to your global url.py
file.
Add to your user profile model
about_me = models.TextField(blank=True, null=True)
facebook_id = models.IntegerField(blank=True, null=True)
facebook_name = models.CharField(max_length=255, blank=True, null=True)
facebook_profile_url = framework_fields.URLTextField(blank=True, null=True)
website_url = framework_fields.URLTextField(blank=True, null=True)
blog_url = framework_fields.URLTextField(blank=True, null=True)
image = models.ImageField(blank=True, null=True)
date_of_birth = models.DateField(blank=True, null=True)
See examples/connect.html
.
For more details, see the Facebook docs.