From: Matías Aguirre Date: Mon, 9 Apr 2012 01:19:09 +0000 (-0300) Subject: Merge branch 'master' of github.com:omab/django-social-auth X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=4e6a01c9cbefa19efe6aae2efc52b1e884dc84fe;p=django-social-auth.git Merge branch 'master' of github.com:omab/django-social-auth --- 4e6a01c9cbefa19efe6aae2efc52b1e884dc84fe diff --cc README.rst index 9cbe49c,28db1f6..958b55a --- a/README.rst +++ b/README.rst @@@ -683,15 -684,12 +683,17 @@@ at `Facebook development resources`_ FACEBOOK_APP_ID FACEBOOK_API_SECRET - - also it's possible to define extra permissions with:: + - Define ``FACEBOOK_EXTENDED_PERMISSIONS`` to get extra permissions from facebook. + NOTE: to get users' email addresses, you must request the 'email' permission:: + + FACEBOOK_EXTENDED_PERMISSIONS = ['email'] - FACEBOOK_EXTENDED_PERMISSIONS = [...] + Take into account that Facebook doesn't return user email by default, this + setting is needed if email is required:: + + FACEBOOK_EXTENDED_PERMISSIONS = ['email'] + - Define ``FACEBOOK_PROFILE_EXTRA_PARAMS`` to pass extra parameters to https://graph.facebook.com/me when gathering the user profile data, like:: diff --cc doc/backends/facebook.rst index 63dfefa,8f38c05..098d04c --- a/doc/backends/facebook.rst +++ b/doc/backends/facebook.rst @@@ -12,15 -12,11 +12,16 @@@ at `Facebook development resources`_ FACEBOOK_APP_ID FACEBOOK_API_SECRET - - also it's possible to define extra permissions with:: + - Define ``FACEBOOK_EXTENDED_PERMISSIONS`` to get extra permissions from facebook. + NOTE: to get users' email addresses, you must request the 'email' permission:: - FACEBOOK_EXTENDED_PERMISSIONS = [...] + FACEBOOK_EXTENDED_PERMISSIONS = ['email'] + Take into account that Facebook doesn't return user email by default, this + setting is needed if email is required:: + + FACEBOOK_EXTENDED_PERMISSIONS = ['email'] + - Define ``FACEBOOK_PROFILE_EXTRA_PARAMS`` to pass extra parameters to https://graph.facebook.com/me when gathering the user profile data, like::