I am using FB SSO for an Android App and I would like to use the Facebook ID to authenticate my users when they upload data to my server. I imagine I should send the OAuth token when making the call to the server. Any examples out there that could help me get started?
Thanks for any pointers.
OAuth2 won a standards battle a few years ago. It's the only authentication protocol supported by the major vendors. Google recommends OAuth2 for all of its APIs, and Facebook's Graph API only supports OAuth2. The best way to understand OAuth2 is to look at what came before it and why we needed something different.
In the App Dashboard, choose your app and scroll to Add a Product Click Set Up in the Facebook Login card. Select Settings in the left side navigation panel and under Client OAuth Settings, enter your redirect URL in the Valid OAuth Redirect URIs field for successful authorization.
OAuth is also used when giving third-party apps access to accounts like your Twitter, Facebook, Google, or Microsoft accounts. It allows these third-party apps access to parts of your account. However, they never get your account password.
I have faced the same problem a while ago. In the end, I did it using the following way:
I get the token via Facebook Android SDK and pass it to my server with the users email address and facebook id. Server tries to get users email address using the token. If the email addresses match, the user has authenticated.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With