{"action":"reopened","issue":{"url":"https://api.github.com/repos/pennersr/django-allauth/issues/1030","labels_url":"https://api.github.com/repos/pennersr/django-allauth/issues/1030/labels{/name}","comments_url":"https://api.github.com/repos/pennersr/django-allauth/issues/1030/comments","events_url":"https://api.github.com/repos/pennersr/django-allauth/issues/1030/events","html_url":"https://github.com/pennersr/django-allauth/issues/1030","id":95568280,"number":1030,"title":"Facebook signup to retrieving user profile","user":{"login":"smilledge","id":1536407,"avatar_url":"https://avatars.githubusercontent.com/u/1536407?v=3","gravatar_id":"","url":"https://api.github.com/users/smilledge","html_url":"https://github.com/smilledge","followers_url":"https://api.github.com/users/smilledge/followers","following_url":"https://api.github.com/users/smilledge/following{/other_user}","gists_url":"https://api.github.com/users/smilledge/gists{/gist_id}","starred_url":"https://api.github.com/users/smilledge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smilledge/subscriptions","organizations_url":"https://api.github.com/users/smilledge/orgs","repos_url":"https://api.github.com/users/smilledge/repos","events_url":"https://api.github.com/users/smilledge/events{/privacy}","received_events_url":"https://api.github.com/users/smilledge/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pennersr/django-allauth/labels/FIXME","name":"FIXME","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-07-17T02:05:32Z","updated_at":"2015-07-22T06:02:18Z","closed_at":null,"body":"When signing up using Facebook users accounts are being created with an empty email address and the username set to \"user\".\r\n\r\nThis request is only returning the following data in the JSON response;\r\n\r\nhttps://github.com/pennersr/django-allauth/blob/master/allauth/socialaccount/providers/facebook/views.py#L22\r\n\r\nRequest:\r\n```\r\ndef fb_complete_login(request, app, token):\r\n    resp = requests.get(GRAPH_API_URL + '/me',\r\n                        params={'access_token': token.token})\r\n    resp.raise_for_status()\r\n    extra_data = resp.json()\r\n    login = providers.registry \\\r\n        .by_id(FacebookProvider.id) \\\r\n        .sociallogin_from_response(request, extra_data)\r\n    return login\r\n```\r\n\r\nResponse:\r\n```\r\n{\r\n    \"name\": \"Walter White\",\r\n    \"id\": \"12345678912345\"\r\n}\r\n```\r\n\r\nDoes the Facebook API `/me` endpoint require the fields to be provided?For example, the following request would return the correct data;\r\n\r\n```\r\nhttps://graph.facebook.com/me?fields=id,email,name,first_name,last_name&access_token=...\r\n```\r\n\r\nAlso, here's my config from `settings.py`;\r\n\r\n```\r\nSOCIALACCOUNT_PROVIDERS = {\r\n    'facebook': {\r\n        'SCOPE': ['public_profile', 'email'],\r\n        'AUTH_PARAMS': {\r\n            'auth_type': 'reauthenticate'\r\n        },\r\n        'METHOD': 'oauth2',\r\n        'VERIFIED_EMAIL': False,\r\n        'VERSION': 'v2.4'\r\n    }\r\n}\r\n```\r\n\r\nNot sure if this is not configured correctly or a bug?"}}