Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FacebookStrategy function is not working #269

Open
yasir-rafiq opened this issue Mar 29, 2020 · 1 comment
Open

FacebookStrategy function is not working #269

yasir-rafiq opened this issue Mar 29, 2020 · 1 comment

Comments

@yasir-rafiq
Copy link

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) {});

@xyide
Copy link

xyide commented Jun 10, 2020

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) {}));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants