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

react-facebook-login not working, after successfull login its redirecting to callback oauth url and give code param in the URI #357

Open
Sundaram1911 opened this issue May 30, 2023 · 1 comment

Comments

@Sundaram1911
Copy link

please help, like how we can fetch client user details using that code params what are the steps with sdk we have to follow to get user details. Thanks !

@jhunexjun
Copy link

I think you're using mobile browser.
The button is executing in a different way on mobile by default.
In order not to behave that way, add disableMobileRedirect={true} as part of props in your .

With regards to code url param being returned, you can use that for the following.

GET https://graph.facebook.com/v17.0/oauth/access_token?
   client_id={app-id}
   &redirect_uri={redirect-uri}
   &client_secret={app-secret}
   &code={code-parameter}
GET graph.facebook.com/debug_token?
     input_token={token-to-inspect}
     &access_token={app-token-or-admin-token}

app-token-or-admin-token is your app_id|secret. i.e. with horizontal bar.

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