Open yasir-rafiq opened 4 years ago
HI, everyone my function is not getting executing in facebbokstrategy like
passport.use(new FacebookStrategy({ clientID: app.facebookAuth.clientID, clientSecret: app.facebookAuth.clientSecret, callbackURL: app.facebookAuth.callbackURL, profileFields: ['id', 'displayName','email'], enableProof: true }, function(accessToken, refreshToken, profile, done) { console.log('profile ===', profile); // **this line not print** }
channel = 'facebook' passport.authenticate(channel, { scope : ['email'] }, function(err, user, info) {});
Where are you executing passport.authenticate from? Do you have it executing as a handler similar to this?
app.get('/login', passport.authenticate(channel, { scope : ['email'] }, function(err, user, info) {}));
HI, everyone my function is not getting executing in facebbokstrategy like
passport.use(new FacebookStrategy({ clientID: app.facebookAuth.clientID, clientSecret: app.facebookAuth.clientSecret, callbackURL: app.facebookAuth.callbackURL, profileFields: ['id', 'displayName','email'], enableProof: true }, function(accessToken, refreshToken, profile, done) { console.log('profile ===', profile); // **this line not print** }
channel = 'facebook' passport.authenticate(channel, { scope : ['email'] }, function(err, user, info) {});