{"action":"created","issue":{"url":"https://api.github.com/repos/jaredhanson/passport-facebook/issues/129","labels_url":"https://api.github.com/repos/jaredhanson/passport-facebook/issues/129/labels{/name}","comments_url":"https://api.github.com/repos/jaredhanson/passport-facebook/issues/129/comments","events_url":"https://api.github.com/repos/jaredhanson/passport-facebook/issues/129/events","html_url":"https://github.com/jaredhanson/passport-facebook/issues/129","id":96749868,"number":129,"title":"Email key is missing in the profile object in passportjs","user":{"login":"sarsarahman","id":1454741,"avatar_url":"https://avatars.githubusercontent.com/u/1454741?v=3","gravatar_id":"","url":"https://api.github.com/users/sarsarahman","html_url":"https://github.com/sarsarahman","followers_url":"https://api.github.com/users/sarsarahman/followers","following_url":"https://api.github.com/users/sarsarahman/following{/other_user}","gists_url":"https://api.github.com/users/sarsarahman/gists{/gist_id}","starred_url":"https://api.github.com/users/sarsarahman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sarsarahman/subscriptions","organizations_url":"https://api.github.com/users/sarsarahman/orgs","repos_url":"https://api.github.com/users/sarsarahman/repos","events_url":"https://api.github.com/users/sarsarahman/events{/privacy}","received_events_url":"https://api.github.com/users/sarsarahman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-07-23T07:21:48Z","updated_at":"2015-08-21T16:54:39Z","closed_at":null,"body":"Trying to use Facebook authentication using passportjs on my mean application. But Email key is missing in the profile object\r\n\r\nI am getting the following object\r\n```\r\n{\r\n    id: '12345678901234567',\r\n    username: undefined,\r\n    displayName: 'Display Name',\r\n    name: {\r\n        familyName: undefined,\r\n        givenName: undefined,\r\n        middleName: undefined\r\n    },\r\n    gender: undefined,\r\n    profileUrl: undefined,\r\n    provider: 'facebook',\r\n    _raw: '{\"name\":\"Display Name\",\"id\":\"12345678901234567\"}',\r\n    _json: {\r\n        name: 'Display Name',\r\n        id: '12345678901234567'\r\n    }\r\n}\r\n```\r\n\r\n\r\nhere are the routes\r\n```\r\n    app.get('/auth/facebook', passport.authenticate('facebook', {\r\n        scope: ['email']\r\n    }));\r\n\r\n    app.get('/auth/facebook/callback', passport.authenticate('facebook', {\r\n        successRedirect: '/profile',\r\n        failureRedirect: '/'\r\n    }));\r\n\r\n    app.get('/connect/facebook', passport.authorize('facebook', {\r\n        scope: ['email']\r\n    }));\r\n\r\n    app.get('/connect/facebook/callback', passport.authorize('facebook', {\r\n        successRedirect: '/profile',\r\n        failureRedirect: '/'\r\n    }));\r\n```\r\n\r\nhere is the screenshot of my apps permission \r\n\r\n![Image of facebokapp]\r\n(http://i.stack.imgur.com/pO9Zc.png)\r\n\r\n\r\nwhat could be going wrong?"},"comment":{"url":"https://api.github.com/repos/jaredhanson/passport-facebook/issues/comments/133493369","html_url":"https://github.com/jaredhanson/passport-facebook/issues/129#issuecomment-133493369","issue_url":"https://api.github.com/repos/jaredhanson/passport-facebook/issues/129","id":133493369,"user":{"login":"ttquang1063750","id":2597865,"avatar_url":"https://avatars.githubusercontent.com/u/2597865?v=3","gravatar_id":"","url":"https://api.github.com/users/ttquang1063750","html_url":"https://github.com/ttquang1063750","followers_url":"https://api.github.com/users/ttquang1063750/followers","following_url":"https://api.github.com/users/ttquang1063750/following{/other_user}","gists_url":"https://api.github.com/users/ttquang1063750/gists{/gist_id}","starred_url":"https://api.github.com/users/ttquang1063750/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ttquang1063750/subscriptions","organizations_url":"https://api.github.com/users/ttquang1063750/orgs","repos_url":"https://api.github.com/users/ttquang1063750/repos","events_url":"https://api.github.com/users/ttquang1063750/events{/privacy}","received_events_url":"https://api.github.com/users/ttquang1063750/received_events","type":"User","site_admin":false},"created_at":"2015-08-21T16:54:39Z","updated_at":"2015-08-21T16:54:39Z","body":"profileFields: ['email'] is the good answer\r\nThanks. It work for me."}}