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

How do we use rocket_oauth2 for Facebook? #30

Closed
viraatdas opened this issue Jan 18, 2022 · 1 comment
Closed

How do we use rocket_oauth2 for Facebook? #30

viraatdas opened this issue Jan 18, 2022 · 1 comment
Labels
question Further information is requested

Comments

@viraatdas
Copy link

viraatdas commented Jan 18, 2022

[global.oauth.facebook]
provider = { auth_uri = "https://graph.facebook.com/oauth/authorize", token_uri = "https://graph.facebook.com/oauth/access_token" }
client_id = ""
client_secret = ""
redirect_uri = "http://localhost:8000/auth/facebook"

This is my Rocket.toml but I'm not sure why I'm not able to create a login flow.

Thanks for the help!

@jebrosen jebrosen added the question Further information is requested label Feb 22, 2023
@jebrosen
Copy link
Owner

Hello, and sorry for the (very) late reply. For posterity:

This is my Rocket.toml but I'm not sure why I'm not able to create a login flow.

Rocket.toml is only one of several pieces required, so there could be any number of issues here:

  • Misconfiguration of your facebook app
  • Missing or wrong #[get] routes
  • Security restrictions or limitations in browsers, especially related to cookies and redirects

To answer this sort of question, it would be very useful to know which step of the flow (site -> facebook -> site) "breaks" first and what error logs are created, if any.

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

No branches or pull requests

2 participants