In my application i register the facebook-strategie as follows: But the returned profile does not contain the email-field....
passport.use(new FacebookStrategy({
You do have the callback part of the code, right?:
app.get('/oauth/facebook/callback', passport.authenticate('facebook', {
failureRedirect: '/login',
successRedirect: '/',
scope:['email']
}));
And, yes, indeed, this should be done with the scope:['email']
, as per instructions from your link and this one here also.