02-27-2017 11:11
02-27-2017 11:11
I noticed in the api docs here: https://dev.fitbit.com/docs/oauth2/#authorization-errors that it appears we can authenticate users with the Fitbit api using Facebook or Google based on the potential error responses:
Facebook account used is not associated with a Fitbit account | {"errors":[{"errorType":"invalid_client","message": "Oops! We don’t have a Fitbit account associated with that Facebook login."}],"success":false} |
Google account used is not associated with a Fitbit account | {"errors":[{"errorType":"invalid_client","message": "Oops! We don’t have a Fitbit account associated with that Google login."}],"success":false} |
However, there's no other documentation about this. So how do we obtain an access token from the Fitbit api if we want to authenticate the user using their Facebook or Google account?
Answered! Go to the Best Answer.
02-27-2017 11:37
02-27-2017 11:37
Fitbit no longer has Google/Facebook sign in available for people going through the OAuth 2.0 consent flow.
If they have already signed in to www.fitbit.com using their Google/Facebook accounts, they won't be shown the sign in form prior to the consent form (unless prompt=login).
Google/Facebook sign in is only available in Fitbit's Web app, so it is not a commonly used feature.
02-27-2017 11:37
02-27-2017 11:37
Fitbit no longer has Google/Facebook sign in available for people going through the OAuth 2.0 consent flow.
If they have already signed in to www.fitbit.com using their Google/Facebook accounts, they won't be shown the sign in form prior to the consent form (unless prompt=login).
Google/Facebook sign in is only available in Fitbit's Web app, so it is not a commonly used feature.
02-27-2017 12:36
02-27-2017 12:36
Thanks for the clarification. Curious why they were removed.
02-27-2017 16:50
02-27-2017 16:50
We removed it from the OAuth consent flow's sign in form for 3 reasons:
05-20-2020 17:51 - edited 05-20-2020 17:53
05-20-2020 17:51 - edited 05-20-2020 17:53
I know this was from years ago, but we're now seeing the Google login option on the OAuth login form for the web API, and it is indeed failing when used on Android. Is this currently a known issue?
05-21-2020 07:43
05-21-2020 07:43
@darin_ce This is expected behavior as Google/Facebook login are not supported during the OAuth consent flow.
05-21-2020 07:50
05-21-2020 07:50
Thanks, good to know. Would it be possible to remove the buttons in situations where they're not supported?
05-21-2020 09:03
05-21-2020 09:03
@darin_ce That's a great suggestion. I'll see what the team thinks as this will help reduce confusion moving forward.
05-26-2022 15:12
05-26-2022 15:12
Do folks know if Google login is still not supported for OAuth via the Web API? We are seeing the Google login button/option on the Fitbit OAuth screen for Web API, but we are seeing issues with OAuth completing. Curious if this is expected, or if it's something that we should be able to resolve.
05-26-2022 17:18
05-26-2022 17:18
Hi @Evidation,
Welcome to the forums!
Please see our Social Login Support documentation. Currently, Google Login is not supported for consenting to 3P apps, but supported for SSO to Fitbit accounts.
Let me know if you have any additional questions.
05-31-2022 10:17
05-31-2022 10:17
Thanks for confirming, John, appreciate it. I saw above that a request was made to remove the 'Google Login' button from the 3P app OAuth screen for the Fitbit Web API, since it isn't supported - is that still something that Fitbit is considering doing?