{"action":"created","issue":{"url":"https://api.github.com/repos/hapijs/bell/issues/144","labels_url":"https://api.github.com/repos/hapijs/bell/issues/144/labels{/name}","comments_url":"https://api.github.com/repos/hapijs/bell/issues/144/comments","events_url":"https://api.github.com/repos/hapijs/bell/issues/144/events","html_url":"https://github.com/hapijs/bell/issues/144","id":107685588,"number":144,"title":"email not returned by facebook","user":{"login":"chaiyitsheng","id":5278852,"avatar_url":"https://avatars.githubusercontent.com/u/5278852?v=3","gravatar_id":"","url":"https://api.github.com/users/chaiyitsheng","html_url":"https://github.com/chaiyitsheng","followers_url":"https://api.github.com/users/chaiyitsheng/followers","following_url":"https://api.github.com/users/chaiyitsheng/following{/other_user}","gists_url":"https://api.github.com/users/chaiyitsheng/gists{/gist_id}","starred_url":"https://api.github.com/users/chaiyitsheng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chaiyitsheng/subscriptions","organizations_url":"https://api.github.com/users/chaiyitsheng/orgs","repos_url":"https://api.github.com/users/chaiyitsheng/repos","events_url":"https://api.github.com/users/chaiyitsheng/events{/privacy}","received_events_url":"https://api.github.com/users/chaiyitsheng/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-09-22T10:24:53Z","updated_at":"2015-09-30T17:18:12Z","closed_at":"2015-09-30T17:18:12Z","body":"i have the following code \r\n\r\n\t\tserver.auth.strategy(providerName, 'bell', {\r\n\t        provider: providerName,\r\n\t        password: config.cookie.password,\r\n\t        clientId: config.login[providerName].clientId,\r\n\t        clientSecret: config.login[providerName].clientSecret,\r\n\t        scope:config.login[providerName].scope,\r\n\t        isSecure: false \r\n\t    });\r\nwhere the config.login[providerName].scope = ['public_profile','email','user_friends'].\r\n\r\nIt is not returning the email and user_friends....how do I go about this?\r\n\r\nThanks\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/hapijs/bell/issues/comments/144481279","html_url":"https://github.com/hapijs/bell/issues/144#issuecomment-144481279","issue_url":"https://api.github.com/repos/hapijs/bell/issues/144","id":144481279,"user":{"login":"ldesplat","id":5972411,"avatar_url":"https://avatars.githubusercontent.com/u/5972411?v=3","gravatar_id":"","url":"https://api.github.com/users/ldesplat","html_url":"https://github.com/ldesplat","followers_url":"https://api.github.com/users/ldesplat/followers","following_url":"https://api.github.com/users/ldesplat/following{/other_user}","gists_url":"https://api.github.com/users/ldesplat/gists{/gist_id}","starred_url":"https://api.github.com/users/ldesplat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ldesplat/subscriptions","organizations_url":"https://api.github.com/users/ldesplat/orgs","repos_url":"https://api.github.com/users/ldesplat/repos","events_url":"https://api.github.com/users/ldesplat/events{/privacy}","received_events_url":"https://api.github.com/users/ldesplat/received_events","type":"User","site_admin":false},"created_at":"2015-09-30T17:18:12Z","updated_at":"2015-09-30T17:18:12Z","body":"Facebook has some really good documentation. For example [https://developers.facebook.com/docs/facebook-login/multiple-providers](https://developers.facebook.com/docs/facebook-login/multiple-providers) outlines some good strategies.\r\n\r\nI personally, assign an id created by myself, use and verify their facebook email address (send an email). Then I exchange the token for a long lived one (since I don't use Bell for facebook auth but I go through the implicit auth instead) and store that along with the expiry time."}}