django-facebook

Facebook open graph API auth backend implementation using the Django web framework and Python
Download

django-facebook Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL v3
  • Publisher Name:
  • Thierry Schellenbach
  • Publisher web site:
  • http://github.com/tschellenbach/

django-facebook Tags


django-facebook Description

Facebook open graph API auth backend implementation using the Django web framework and Python django-facebook is a Django app that provides login and registration functionality using the new facebook open graph API. * Actually creates user models and profiles * Robust facebook user data -> django account conversionImplementation:Step 1 - SettingsDefine the settings in django_facebook/settings.py in your settings.py file.Step 2 - Url configadd url(r'^facebook/', include('django_facebook.urls')),to your global url.py file.Step 3 - Ensure the FB JS api is available on all pages you want to login(http://developers.facebook.com/docs/reference/javascript/)Step 4 - Update your modelsAdd 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)Step 5 - TemplateSee examples/connect.html.For more details, see the (http://developers.facebook.com/docs/). Requirements: · Python · Django · django.contrib.auth · django-registration · python-cjson


django-facebook Related Software