NestJS is a relatively new framework that has been growing in popularity for many good reasons. It has full support for TypeScript and it combines ...
For further actions, you may consider blocking this person and/or reporting abuse
when i git the localhost:3000/auth/facebook in the browser i do get a login screen by facebook. After login i do get an error from facebook:
I have a similar issue, but I solve it by adding an email scope on facebook app
I hope this one can help you guys
hey did you find the solution for this? I've been getting the exact same error, even though I have tried everything, I'm still stuck with this
you are my hero! Thank you for this article, it was very very useful...
Thank you.
How protect other routes ?
@Get("/products")
@UseGuards(AuthGuard("facebook")) ?
if i have also Google guard it will be like:
@Get("/products")
@UseGuards(AuthGuard("facebook"))
@UseGuards(AuthGuard("google"))
I got an error, apparently it does not return the name and email, some help
dev-to-uploads.s3.amazonaws.com/i/...
I think this shows up if the email of user is not verified.
Amazing article! One thing to note is if your local front-end runs on a separate port you will have CORS errors with Facebook. To resolve, the front-end MUST use the same port as your server (localhost:3000 in this case) so you'll need to proxy your request made on front-end to get rid of the errors.
Wonderful article Sir....
Thank King Elisha, hope you can create a lot of post like this <3
then how to implement logout ??
Thank for your sharing, may i ask how can i implement facebook login with graphql project? is it possible without @Req annotation?
Hello @linhtran28 , did you found a way to implemenent this?
Any news on this?
To anyone getting the "Sorry, something went wrong". Go to facebook app and allow "email" as a scope.
Good article. I have a question regarding the facebookLoginRedirect function. How are you able to access req.user as req is an Express object?
I am getting this error:
InternalOAuthError: Failed to obtain access token