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

Passport Facebook not redirecting correctly (Error Code 500) #282

Open
Terribleangel opened this issue Mar 7, 2021 · 2 comments
Open

Passport Facebook not redirecting correctly (Error Code 500) #282

Terribleangel opened this issue Mar 7, 2021 · 2 comments

Comments

@Terribleangel
Copy link

Hello,
Passport facebook has started throwing a really funky error on redirect. I thought it was something to do with the versioning of the graph api but as shown from the url, I've run it with api v10.0 and the error is still persisting.
image

Does anyone know why this is happening? This is incredibly frustrating for me

@babu0008
Copy link

Hello,
Passport facebook has started throwing a really funky error on redirect. I thought it was something to do with the versioning of the graph api but as shown from the url, I've run it with api v10.0 and the error is still persisting.
image

Does anyone know why this is happening? This is incredibly frustrating for me

in the authentication, write this code only

app.get("/auth/facebook",
  passport.authenticate('facebook'));

Not something like this. by default profile will be displayed.

app.get("/auth/facebook",
  passport.authenticate('facebook', {scope: ["profile"] }));

but if you need additional scope. for example email, you can write like this.

app.get("/auth/facebook",
passport.authenticate('facebook', {scope: ["email"] }));

if you still have the same problem. pls let me know.

@asynctushar
Copy link

app.get("/auth/facebook",
passport.authenticate('facebook', {scope: ["email"] }));

and what if I don't give access to my email from facebook? still got listed on facebook app list.

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

3 participants