{"action":"created","issue":{"url":"https://api.github.com/repos/omab/python-social-auth/issues/889","repository_url":"https://api.github.com/repos/omab/python-social-auth","labels_url":"https://api.github.com/repos/omab/python-social-auth/issues/889/labels{/name}","comments_url":"https://api.github.com/repos/omab/python-social-auth/issues/889/comments","events_url":"https://api.github.com/repos/omab/python-social-auth/issues/889/events","html_url":"https://github.com/omab/python-social-auth/issues/889","id":146635183,"number":889,"title":"Email is empty in login with Facebook","user":{"login":"mapeveri","id":6276555,"avatar_url":"https://avatars.githubusercontent.com/u/6276555?v=3","gravatar_id":"","url":"https://api.github.com/users/mapeveri","html_url":"https://github.com/mapeveri","followers_url":"https://api.github.com/users/mapeveri/followers","following_url":"https://api.github.com/users/mapeveri/following{/other_user}","gists_url":"https://api.github.com/users/mapeveri/gists{/gist_id}","starred_url":"https://api.github.com/users/mapeveri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mapeveri/subscriptions","organizations_url":"https://api.github.com/users/mapeveri/orgs","repos_url":"https://api.github.com/users/mapeveri/repos","events_url":"https://api.github.com/users/mapeveri/events{/privacy}","received_events_url":"https://api.github.com/users/mapeveri/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-07T13:59:00Z","updated_at":"2016-04-26T04:25:18Z","closed_at":null,"body":"When login with Facebook, the email is always empty:\r\n\r\nThis is my 'details' response:\r\n\r\n{'fullname': 'name', 'first_name': 'first_name', 'username': 'username', 'email': '', 'last_name': 'last_name'}\r\n\r\nThe graph say 'granted':\r\n\r\n![image](https://cloud.githubusercontent.com/assets/6276555/14353423/6898cb9a-fcaf-11e5-90fd-bd0a88d316a2.png)\r\n\r\nMy settings.py:\r\n\r\nAUTHENTICATION_BACKENDS = (\r\n    'social.backends.facebook.FacebookAppOAuth2',\r\n    'social.backends.facebook.FacebookOAuth2',\r\n    'social.backends.google.GoogleOpenId',\r\n    'social.backends.google.GoogleOAuth2',\r\n    'social.backends.google.GoogleOAuth',\r\n    'django.contrib.auth.backends.ModelBackend',\r\n)\r\n\r\nSOCIAL_AUTH_URL_NAMESPACE = 'social'\r\n \r\nSOCIAL_AUTH_LOGIN_REDIRECT_URL = \"/\"\r\n \r\nSOCIAL_AUTH_LOGIN_URL = \"/\"\r\n\r\nSOCIAL_AUTH_EMAIL_VALIDATION_FUNCTION = 'apps.main.mail.send_validation'\r\nSOCIAL_AUTH_EMAIL_VALIDATION_URL = '/email_sent/'\r\nSOCIAL_AUTH_FORCE_EMAIL_VALIDATION = True\r\n\r\nSOCIAL_AUTH_PROTECTED_USER_FIELDS = ['email']\r\n  \r\nSOCIAL_AUTH_FACEBOOK_SCOPE = ['email']\r\n\r\nSOCIAL_AUTH_PIPELINE = (\r\n    'social.pipeline.social_auth.social_details',\r\n    'social.pipeline.social_auth.social_uid',\r\n    'social.pipeline.social_auth.auth_allowed',\r\n    'social.pipeline.social_auth.social_user',\r\n    'social.pipeline.user.get_username',\r\n    'apps.main.pipelines.require_email',\r\n    'apps.main.pipelines.custom_mail_validation',\r\n    'social.pipeline.social_auth.associate_by_email',  \r\n    'social.pipeline.user.create_user',\r\n    'social.pipeline.social_auth.associate_user',\r\n    'social.pipeline.social_auth.load_extra_data',\r\n    'social.pipeline.user.user_details',\r\n    'apps.main.pipelines.login'\r\n)\r\n\r\nAny idea?\r\n\r\nThanks!\r\n"},"comment":{"url":"https://api.github.com/repos/omab/python-social-auth/issues/comments/214609005","html_url":"https://github.com/omab/python-social-auth/issues/889#issuecomment-214609005","issue_url":"https://api.github.com/repos/omab/python-social-auth/issues/889","id":214609005,"user":{"login":"luis8","id":1047864,"avatar_url":"https://avatars.githubusercontent.com/u/1047864?v=3","gravatar_id":"","url":"https://api.github.com/users/luis8","html_url":"https://github.com/luis8","followers_url":"https://api.github.com/users/luis8/followers","following_url":"https://api.github.com/users/luis8/following{/other_user}","gists_url":"https://api.github.com/users/luis8/gists{/gist_id}","starred_url":"https://api.github.com/users/luis8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luis8/subscriptions","organizations_url":"https://api.github.com/users/luis8/orgs","repos_url":"https://api.github.com/users/luis8/repos","events_url":"https://api.github.com/users/luis8/events{/privacy}","received_events_url":"https://api.github.com/users/luis8/received_events","type":"User","site_admin":false},"created_at":"2016-04-26T04:25:18Z","updated_at":"2016-04-26T04:25:18Z","body":"okay, i just find the solution. You need to add this to your settings file\r\n\r\nSOCIAL_AUTH_FACEBOOK_PROFILE_EXTRA_PARAMS = {\r\n    'fields': 'id,name,email', \r\n}\r\n\r\nI didn't see this in the docs, so i think they need an improvement"}}