[Python-modules-commits] [python-social-auth] 53/61: Update facebook.rst

Wolfgang Borgert debacle at moszumanska.debian.org
Sat Dec 24 15:14:07 UTC 2016


This is an automated email from the git hooks/post-receive script.

debacle pushed a commit to tag v0.2.13
in repository python-social-auth.

commit 6b18c5c55391a18d5b9e2753c26d0667d2e72324
Author: Michał Zagdan <michal.zagdan at gmail.com>
Date:   Thu Aug 20 13:14:29 2015 +0200

    Update facebook.rst
    
    Updated FB docs to reflect changes in getting fields form public profile or email
---
 docs/backends/facebook.rst | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/docs/backends/facebook.rst b/docs/backends/facebook.rst
index 67c3ea1..cf91365 100644
--- a/docs/backends/facebook.rst
+++ b/docs/backends/facebook.rst
@@ -24,9 +24,13 @@ development resources`_:
      SOCIAL_AUTH_FACEBOOK_SCOPE = ['email']
 
 - Define ``SOCIAL_AUTH_FACEBOOK_PROFILE_EXTRA_PARAMS`` to pass extra parameters
-  to https://graph.facebook.com/me when gathering the user profile data, like::
+  to https://graph.facebook.com/me when gathering the user profile data (you need
+  to explicitly ask for fields like ``email`` using ``fields`` key)::
 
-    SOCIAL_AUTH_FACEBOOK_PROFILE_EXTRA_PARAMS = {'locale': 'ru_RU'}
+    SOCIAL_AUTH_FACEBOOK_PROFILE_EXTRA_PARAMS = {
+      'locale': 'ru_RU',
+      'fields': 'id, name, email, age_range'
+    }
 
 If you define a redirect URL in Facebook setup page, be sure to not define
 http://127.0.0.1:8000 or http://localhost:8000 because it won't work when

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-social-auth.git



More information about the Python-modules-commits mailing list