Forum Posts

Enquiries on Webhook and fitbit activities APIs

Hi,Refer to my attachment below, Currently, the number of end users whom are using Fitbit device is 686 users. But our backend system received Fitbit calls with more than 800 requests per hour via “POST /v1/fitbit/webhook” endpoint even when it is 2 ...

Chart.png
g.siang by Recovery Runner
  • 521 Views
  • 5 replies
  • 0 votes

Resolved! Insufficient Permissions | 403 Error

Hi ,I am facing an issue where I have authorized the user with my application and currently I am trying to access my personal data only. I am only able to access user profile data i.e.,  https://api.fitbit.com/1/user/-/profile.json   I am not able to...

voliotDev by Recovery Runner
  • 515 Views
  • 3 replies
  • 0 votes

Error Code 1008

My app has recently started to get an error code 1008 in the body when using the request token to get the access token and refresh token. Any idea what this means? Nothing has changed in the code. It just started doing it. 

vanmepper by Recovery Runner
  • 711 Views
  • 4 replies
  • 2 votes

Resolved! Is there any api for sync?

I'm trying to write an app which can fetch data from Fitbit (using web API). As I know, the way to sync the data from watch is opening the Fitbit app(or make Fitbit app running in the background). If I didn't open the Fitbit app to sync the data firs...

phx0828 by Jogger
  • 405 Views
  • 2 replies
  • 0 votes

asp.net oauth2 MVC

startup.csservices.AddOAuth(options => { options.AuthenticationScheme = "FitBit-AccessToken"; options.AuthorizationEndpoint = "https://www.fitbit.com/oauth2/authorize"; options.TokenEndpoint = "https://api.fitbit.com/oauth2/token"; options.SaveTokens...

Unable to revoke token when using PKCE

Hi! I haven't been able to figure out how to revoke a token when using PKCE.  I'm setting the appropriate header (and the content-length is being included): content-type application/x-www-form-urlencoded and the body of the post request is:client_id=...

Resolved! Salesforce Fitbit auth process

I'm working on integration between Salesforce and Fitbit, and I need to connect Users (Patients) from Salesforce with their Fitbit accounts/devices. In the authentication process I need to redirect Patient from Salesforce to Fitbit authentication pag...

shoxx by Recovery Runner
  • 474 Views
  • 1 replies
  • 0 votes

token request error

Hi,we're trying to use the authorization code to exchange the token (following the authorization code grant flow),and get 500 error with the response: {"errors":[{"errorType":"request","fieldName":"n/a","message":null}],"success":false} request detai...

Salesforce to Fitbit authentication

Use Case: When User is created/registered, Salesforce needs to generate hyperlink and send it to the User via email.When User clicks the hyperlink, it grabs UserID and User Scopes(Custom object with possible values like this Fitbit Scopes ) and redir...

shoxx by Recovery Runner
  • 626 Views
  • 1 replies
  • 0 votes

OAuth2.0 Authorization Code Grant returns 400 error

I am trying to build a web application that monitor the heart rate of Fitbit users. I registered the application which is client type. Below is my code and I am getting an error 400. I have two questions basically, - The first one is what is the auth...

please help me understand the authorizationurl

This is the authorizationUrl:https://www.fitbit.com/oauth2/authorize?response_type=code&client_id=23B8T2&redirect_uri=http://localhost:8085&scope=activity%20heartrate%20sleep%20weight&prompt=login%20consent What is the problem with this? What is expe...

rasalt by Jogger
  • 410 Views
  • 1 replies
  • 0 votes

Redirect Uri Implicit flow

Hi, I am new to the Fitbit community and OAuth 2.0 development. I was wondering how the redirect Uri should look like if I am using the implicit flow. I want the user to be redirected to the application itself and can't find anything on the internet ...

CSE2000 by Jogger
  • 409 Views
  • 1 replies
  • 0 votes

Resolved! Fitbit Alta web API support

Hi,I have integrated the Web API in my iOS app to allow users to connect to Fitbit and show their steps in the app. I have a user that can't see their steps in my app using an Alta device. Are the Alta devices supported? The Ace 2 is not supported fo...

pepejeria by Recovery Runner
  • 460 Views
  • 1 replies
  • 0 votes

How to get fitbit user data using springboot

I have been trying to get fibit user data but I got stuck in the middle.I will explain my problem in detail.First I got my details OAuth 2.0 Client ID,Client Secret,Redirect URI:http://localhost:8043/loginwhen my application redirected to fitbit url,...

Fitbit sleep api returns insufficient_scope error

Fitbit sleep API returns this error, but weight and activity API works fineAlso, I added sleep to the scope, but it didn't help me GET https://api.fitbit.com/1.2/user/-/sleep/date/2017-04-02.json {"errors":[{ "errorType":"insufficient_scope", "me...

activities Data is null ???

Data information exists until 2021-04-18.There is no data information from 2021-04-19============================================Connection method: /activities/date/{date}============================================Data Info EX)2021-04-18{"activities...

Get Activity TCX empty

HelloI am configuring the web api.So far no worries to report.I have the token, I recover the activities with "/activities/list.json".I get the TCX link and the logId ... but when I want to generate the tcx file with the end point "https://api.fitbit...

RefreshToken returns NULL for valid user

Hi we are using OAuth 2.0 Server type and doing exactly as mentioned here https://dev.fitbit.com/build/reference/web-api/oauth2/#refreshing-tokens to get new refresh tokens and one of the users refresh tokens is returning NULL. We have intraday acces...

mkft by Jogger
  • 617 Views
  • 5 replies
  • 0 votes

Subscriber not successfully verified

The subscription verification for our application is failing and showing this message "Subscriber has not been successfully verified." The endpoint is working fine and it is returning the correct 204/404 replies when the code is either correct or inv...

SPHAdmin by Recovery Runner
  • 522 Views
  • 1 replies
  • 1 votes

Resolved! Invalid or expired refresh tokens

Under what circumstances does a refresh token become expired? Or a previously valid refresh token for the same application become invalidated? I encountered this issue recently where most of our refresh tokens had been made invalid and had to write a...

Resolved! Typo in authorized message after successful OAUTH

Hi! Tiny issue I noticed today after using the Web API for a couple of days. The browser shows the following message: Application succesfully authorizedYou can close this browser window I make this mistake myself as a non-native speaker all the time ...

Refreshing expired tokens under OAuth 2.0

Hello, I'm writing for some assistance in automatically refreshing expired tokens under Fitbit Web API.  The initial user login is successful, but after this the tokens expire and I've been making several attempts to create a function to refresh the ...

bsavarin by Base Runner
  • 1161 Views
  • 4 replies
  • 0 votes

Massive Fitbit Access Token/Refresh Failure

HI, Was there any downtime for the Fitbit Web API that could have caused a massive access token/refresh failure? We do use the standard OAuth 2 flow. We have an intermediate service that allows us to grab data from multiple wearable services. For our...

Generic fitness data for App development

I'm not a programmer nor a developer but I have ideas. My app will retrieve fitness data from multiple Fitbit users and store it into a workable database. For development and testing purposes, is there a virtual user with actual data I can use with t...

fsumac by Jogger
  • 1299 Views
  • 2 replies
  • 0 votes