fix(fbAuth): get user email @lefnire this should be all we need but not having the keys i can not test before going live

This commit is contained in:
Matteo Pagliazzi 2014-08-19 04:41:04 +02:00
parent faed77f186
commit 6340312695

View file

@ -258,7 +258,7 @@ api.setupPassport = function(router) {
// redirecting the user to facebook.com. After authorization, Facebook will
// redirect the user back to this application at /auth/facebook/callback
router.get('/auth/facebook',
passport.authenticate('facebook'),
passport.authenticate('facebook', {scope: 'email'}),
i18n.getUserLanguage,
function(req, res){
// The request will be redirected to Facebook for authentication, so this