Skip to content

Commit

Permalink
Merge pull request #717 from zergu/patch-1
Browse files Browse the repository at this point in the history
Update facebook.rst
  • Loading branch information
omab committed Aug 22, 2015
2 parents d9d0fba + 6b18c5c commit 60162a6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/backends/facebook.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 60162a6

Please sign in to comment.