{"action":"created","issue":{"url":"https://api.github.com/repos/3pillarlabs/socialauth/issues/59","labels_url":"https://api.github.com/repos/3pillarlabs/socialauth/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/3pillarlabs/socialauth/issues/59/comments","events_url":"https://api.github.com/repos/3pillarlabs/socialauth/issues/59/events","html_url":"https://github.com/3pillarlabs/socialauth/issues/59","id":105560746,"number":59,"title":"How to get email for facebook using Social Auth 4.9","user":{"login":"tanmoy-hl","id":12951860,"avatar_url":"https://avatars.githubusercontent.com/u/12951860?v=3","gravatar_id":"","url":"https://api.github.com/users/tanmoy-hl","html_url":"https://github.com/tanmoy-hl","followers_url":"https://api.github.com/users/tanmoy-hl/followers","following_url":"https://api.github.com/users/tanmoy-hl/following{/other_user}","gists_url":"https://api.github.com/users/tanmoy-hl/gists{/gist_id}","starred_url":"https://api.github.com/users/tanmoy-hl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tanmoy-hl/subscriptions","organizations_url":"https://api.github.com/users/tanmoy-hl/orgs","repos_url":"https://api.github.com/users/tanmoy-hl/repos","events_url":"https://api.github.com/users/tanmoy-hl/events{/privacy}","received_events_url":"https://api.github.com/users/tanmoy-hl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-09-09T09:39:57Z","updated_at":"2015-09-22T10:02:47Z","closed_at":null,"body":"Hi,\r\nI am using Social auth 4.9 in a dropwizard project and I am trying to retrieve user email id.\r\nI found a reference here where the firstname, lastname, email etc are explicitly set to null.\r\nhttps://github.com/3pillarlabs/socialauth/blob/master/socialauth/src/main/java/org/brickred/socialauth/provider/FacebookImpl.java\r\n\r\nMy code goes as follows {recommended way to get the info}: \r\nMap<String, String> params = SocialAuthUtil.getRequestParametersMap(request)\r\n                AuthProvider provider = manager.connect(params);\r\n                ResponseUserModel respModel = null;\r\n                // get profile\r\n                Profile p = provider.getUserProfile();\r\n                String email = p.getEmail();\r\n\r\n##############################################################################\r\nhere I get null for the email. The object I get is as follows : \r\n'org.brickred.socialauth.Profile Object {\r\n email: null\r\n firstName: null\r\n lastName: null\r\n country: null\r\n language: null\r\n fullName: Tanmoy Bhattacharjee\r\n displayName: null\r\n dob: null\r\n gender: null\r\n location: null\r\n validatedId: 1#############8\r\n profileImageURL: http://graph.facebook.com/1#############8/picture\r\n providerId: facebook\r\n contactInfo { \r\n } \r\n}'\r\n\r\n##############################################################################\r\n\r\nI am stuck here for long. Any help will be appreciated.\r\n\r\nThanks,\r\nTanmoy"},"comment":{"url":"https://api.github.com/repos/3pillarlabs/socialauth/issues/comments/142232972","html_url":"https://github.com/3pillarlabs/socialauth/issues/59#issuecomment-142232972","issue_url":"https://api.github.com/repos/3pillarlabs/socialauth/issues/59","id":142232972,"user":{"login":"bogdan-nourescu","id":4696503,"avatar_url":"https://avatars.githubusercontent.com/u/4696503?v=3","gravatar_id":"","url":"https://api.github.com/users/bogdan-nourescu","html_url":"https://github.com/bogdan-nourescu","followers_url":"https://api.github.com/users/bogdan-nourescu/followers","following_url":"https://api.github.com/users/bogdan-nourescu/following{/other_user}","gists_url":"https://api.github.com/users/bogdan-nourescu/gists{/gist_id}","starred_url":"https://api.github.com/users/bogdan-nourescu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bogdan-nourescu/subscriptions","organizations_url":"https://api.github.com/users/bogdan-nourescu/orgs","repos_url":"https://api.github.com/users/bogdan-nourescu/repos","events_url":"https://api.github.com/users/bogdan-nourescu/events{/privacy}","received_events_url":"https://api.github.com/users/bogdan-nourescu/received_events","type":"User","site_admin":false},"created_at":"2015-09-22T10:02:47Z","updated_at":"2015-09-22T10:02:47Z","body":"In order for me to get the email address  from facebook i had to add to the oauth_consumer.properties:\r\n`graph.facebook.com.custom_permissions = email`"}}