Bubble Docs
  • Introduction
  • New? Start Here
  • What is Bubble?
  • The Glossary
  • User manual
    • Getting started
      • What is Bubble?
      • Building your first app
        • Planning features
        • Database structure
        • Design and UX
        • eCommerce and payments
          • Shopping cart
          • Checkout page
          • One-time payments
          • Subscriptions
          • Marketplace
      • Creating and managing apps
      • The Bubble editor
        • Tabs and sections
          • Design tab
            • The element tree
            • The property editor
          • Workflow tab
          • Data tab
          • Styles tab
          • Plugins tab
          • Settings tab
            • Application settings
              • Custom headers/body
              • Visual settings
              • Social media sharing
              • Translating your app
              • Email settings
              • Collaboration
            • Custom domain and DNS
          • Logs tab
        • Tools
          • Key features
          • The search tool
          • The Issue Checker
          • The element tree
          • The element property editor
          • The debugger
          • Notes
        • Previewing your app
      • Transitioning to Bubble from...
        • JavaScript
        • HTML and CSS
        • SQL
    • Design
      • Elements
        • The element hierarchy
          • The element tree
        • The page
        • Containers
          • Groups
          • Repeating groups
          • Table elements
          • Popups
          • Floating groups
          • Group focus
        • Visual elements
        • Input forms
          • Text and numbers
          • Dates and time
          • File uploads
          • Selection controls
        • Reusable Elements
      • Styling
        • Color variables
        • Font variables
        • Styles
        • Custom Fonts
      • Responsive design
        • Building responsive pages
        • Legacy articles
          • The Basics (Legacy)
          • Building Responsive Pages (Legacy)
          • Migrating Legacy Pages
          • Tips When Designing (Legacy)
      • Templates
      • The Component Library
      • Importing from Figma
    • Data
      • The database
        • Data types and fields
        • Creating, saving and deleting data
        • Finding data
        • Displaying data
        • Protecting data with privacy rules
        • The database editor
        • Export/import data
          • Exporting data
          • Importing data (CSV)
        • Working with location data
        • Using Algolia
        • Database structure by app type
          • Marketplace Apps
          • Directory & Listings Apps
          • Social Network Apps
          • SaaS Apps
          • Project Management Apps
          • CRM Apps
          • Professional Services Apps
          • On-demand Apps
          • Documentation/ CMS Apps
          • Applicant Tracking System (ATS) Apps
          • Portfolio Apps
          • Gallery Apps
          • Online Store / Ecommerce Apps
          • Blog Apps
          • Messaging App
          • Dashboards
          • Building Block Apps
          • Bubble as a backend
      • Files
      • Images
      • Static data
        • App texts (translations)
        • Option sets
      • Temporary data
        • Custom states
        • URL parameters
      • User accounts
        • Authentication plugins
          • Facebook plugin
          • Fitbit plugin
          • Google plugin
          • Instagram plugin
          • LinkedIn plugin
          • Pinterest plugin
          • Slack plugin
          • Wistia plugin
          • YouTube plugin
        • Cookies set by Bubble
      • Time, dates and time zones
    • Logic
      • The frontend and backend
      • Workflows
        • Events
          • Frontend events
            • Recurring workflows
            • Custom events
          • Backend events
            • Database trigger events
        • Actions
        • API Workflows
      • Dynamic expressions
      • Conditions
      • Navigation
        • Single-page applications (SPA)
        • Multi-page applications
        • Page slugs
    • Workload
      • Understanding workload
        • Activity types
        • The workload calculation
        • Client-side and server-side processing
      • Tracking workload
        • Measuring
          • Using App Metrics
        • Monitoring
          • Workload notifications
          • Infinite recursion protection
      • Optimizing workload
        • Optimization framework
        • Optimization checklist
          • Page load
          • Searches
          • Workflows and actions
          • Backend workflows
        • Agency showcases
          • Minimum Studio
          • Neam
          • Support Dept
    • Security
      • Bubble's security features
      • Planning app security
      • Client-side and server-side
      • Bubble account security
      • App security
      • Page security
      • Database security
      • API security
        • API Connector security
        • Data API security
        • Workflow API security
      • Flusk
        • Overview
        • Flusk plan features
        • Getting started with Flusk
        • Flusk security tools
          • The Issues Explorer
          • Issue details
          • Tools and settings
            • Pages rating
            • Database rating
        • Flusk FAQ
      • Cookies
      • Security checklist
    • Publishing your app
      • Web app
      • Native mobile app
        • Global native mobile settings
        • iOS App Store
        • Google Play Store
        • Publishing FAQ
    • AI
      • Generate apps with AI
        • About AI app generation
      • AI page designer
      • Connect to AI agents
    • Maintenance
      • Collaborators
      • Version control
        • Best practices: Version control
        • Transitioning from the legacy version control
        • Terminology: Version control
        • Version Control (legacy)
      • Commenting
      • Database maintenance
        • Copying the database
        • Restoring database backups
        • Bulk operations
          • Bulk operation methods compared
        • Wiping change history
      • Performance
        • Hard limits
        • Capacity Usage (legacy)
        • Notes on queries
      • SEO
        • Introduction to SEO
        • SEO: App
        • SEO: Page
      • Testing and debugging
        • Introduction to testing and debugging
        • The debugger
        • The server logs
        • Supported browsers
      • API workflow scheduler
    • Integrations
      • API
        • Introduction to APIs
          • What is a RESTful API?
        • The Bubble API
          • Bubble API terminology
          • Authentication
            • How to authenticate
            • No authentication
            • As a User
            • As an admin
          • The Data API
            • Data API Privacy Rules
            • Data API endpoints
            • Data API requests
          • The Workflow API
            • Workflow API privacy rules
            • Workflow API endpoints
            • API workflows
              • Creating API workflows
              • Scheduling API workflows
              • Recursive API workflows
              • API Workflow Scheduler
              • Case: Stripe notifications
        • The API Connector
          • Authentication
          • API Connector security
          • API guides
            • OpenAI
              • Authentication
              • Calls
                • ChatGPT
                  • Chat
            • Google Translate
              • How to setup Google API keys
          • Streaming API
        • API security
        • Plugins that connect to APIs
        • API Glossary
      • Plugins
        • What Plugins Can Do
        • Installing and using Plugins
        • Authentication plugins
        • Special Plugins
      • SQL Database Connector
      • Bubble App Connector
      • WorkOS
        • WorkOS SSO
        • WorkOS API
    • Infrastructure
      • Sub-apps
      • Bubble release tiers
      • Hosting and scaling
        • How Bubble hosting works
        • Scaling with Bubble
        • CDN (Cloudflare)
        • Bubble app names
        • Domain and DNS
      • Compliance
        • GDPR
        • SOC 2 Type II
        • HIPAA
        • Other frameworks and standards
    • Bubble for Enterprise
      • Hosting and infrastructure
        • Dedicated instance
          • The Dedicated editor experience
          • Technical specs
          • Main cluster dependencies
          • Customizable options
          • Migration process
            • Pre-migration
            • During migration
            • Post-migration
      • Security and compliance
        • Single sign-on (SSO)
        • GDPR
        • SOC 2 Type II
        • HIPAA
        • Other frameworks
        • Bubble's security features
      • Admin and collaboration
      • Priority support
      • Billing and Payment Guideline for Dedicated Instances
  • Core Reference
    • Using the core reference
    • Bubble's Interface
      • Design tab
      • Design tab (Legacy)
      • Workflow tab
      • Data tab
      • Styles tab
      • Styles tab (Legacy)
      • Plugins tab
      • Settings tab
      • Logs tab
      • Template tab
      • Toolbar
      • Top and context menu options
      • Deployment and version control
        • Deployment & Version Control Dropdown (legacy)
      • Notes
    • Elements
      • General properties
      • General properties (Legacy)
      • Styling properties
      • Styling Properties (Legacy)
      • Responsive Properties
      • Responsive Properties (Legacy)
      • Conditional formatting
      • States
      • Page Element
        • Page Element (Legacy)
      • Visual Elements
      • Containers
      • Container Layout Types
      • Containers (Legacy)
      • Input Forms
      • Reusable Elements
      • Element Templates (legacy)
    • Workflows
    • Events
      • General events
      • Element events
      • Custom events
      • Recurring event
      • Database trigger event
    • Actions
      • Account
      • Navigation
      • Data (things)
      • Email
      • Element
      • Custom
    • Data
      • Data Sources
      • Operators and comparisons
      • Search
      • Privacy
    • Styles
    • API
      • The Bubble API
        • The Data API
          • Authentication
          • Data API endpoints
          • Data API requests
        • The Workflow API
      • The API Connector
        • Authentication
        • Adding calls
    • Bubble-made Plugins
      • AddtoAny Share Buttons
      • Airtable
      • API Connector
      • Blockspring
      • Box
      • Braintree
      • Bubble App Connector
      • Chart.js
      • Circle Music Player
      • Draggable Elements
      • Dropzone
      • Facebook
      • Fitbit
      • Full Calendar
      • Google
      • Google Analytics
      • Google Optimize
      • Google Places
      • Ionic Elements
      • iTunes
      • Slidebar Menu
      • LinkedIn
      • Localize Translation
      • Mixpanel
      • Mouse & Keyboard Interactions
      • Multiselect Dropdown
      • Progress Bar
      • Rich Text Editor
      • Rich Text Editor (Legacy)
      • Screenshotlayer
      • SelectPDF
      • Slack
      • Segment
      • Slick Slideshow
      • SQL Database Connector
      • Star Rating
      • Stripe
      • Tinder-like Element
      • Twitter
      • YouTube
      • Zapier
    • Application Settings
      • App plan
      • General
      • Domain / email
      • Languages
      • SEO / metatags
      • API
      • Collaboration
      • Sub-apps
      • Versions
  • Account & Marketplace
    • Account and billing
      • Pricing and plans
        • Plans and billing
        • Billing cycle
        • FAQ: Pricing and Workload
      • Account Management
      • Building Apps for Others
      • Selling on the Marketplace
      • Plans & Billing (legacy)
    • Official Bubble Certification
      • Hiring certified developers
    • Building Plugins
      • The Plugin Editor
      • General Settings
      • Updating to Plugin API v4
      • Adding API Connections
      • Building Elements
      • Building Actions
      • Loading Data
      • Publishing and versioning
      • Github Integration
    • Building Templates
    • Application and data ownership
    • Marketplace policies
    • Bug reports
  • Vulnerability Disclosure Policy
  • Beta features
    • About the Beta features section
    • Native mobile apps 🔒
      • Introduction
        • What is a native mobile app?
        • Native mobile vs. web development
        • Differences in native and web elements
        • Native mobile app terminology
      • Building
        • Views and navigation
        • Native mobile actions
        • Components and gestures
        • Device resources
          • Location services
          • Camera/photo library
      • Previewing
      • Publishing
Powered by GitBook
On this page
  • Signup/login with a social network
  • OAuth provider
  • Invite Fitbit friend
  • InvitedUserEmail
  • Accept Fitbit friend invitation
  • FromUserID
  • Add Fitbit subscription
  • SubscriptionID
  • Delete Fitbit subscription
  • CollectionPath
  • Current user’s Fitbit profile
  • ID
  • Avatar
  • FullName
  • Nickname
  • AboutMe
  • Age
  • Height
  • Weight
  • DateOfBirth
  • MemberSince
  • Current user’s Fitbit daily activities
  • Activities
  • Goals_caloriesOut
  • Goals_distance
  • Goals_floors
  • Goals_steps
  • Current user’s Fitbit food log
  • Foods
  • Summary_calories
  • Summary_carbs
  • Summary_fat
  • Summary_fiber
  • Summary_protein
  • Summary_sodium
  • Summary_water
  • Current user’s Fitbit sleep log
  • TotalMinutesAsleep
  • TotalSleepRecords
  • TotalTimeInBed
  • Current user’s Fitbit heart rate log
  • CaloriesOut
  • Max
  • Min
  • Minutes
  • Name
  • Current user’s Fitbit lifetime activities
  • Lifetime_total_caloriesOut
  • Lifetime_total_distance
  • Lifetime_total_floors
  • Lifetime_total_activeScore
  • Current user’s Fitbit device
  • ID
  • Battery
  • DeviceVersion
  • Type
  • LastSyncTime
  • Current user’s Fitbit friends
  • ID
  • Avatar
  • FullName
  • Nickname
  • AboutMe
  • Age
  • Height
  • Weight
  • DateOfBirth
  • MemberSince
  • Current user’s Fitbit friends invitations
  • DateTime
  • User
  • Current user’s Fitbit subscription
  • CollectionType
  • OwnerID
  • OwnerType
  • SubscriberID
  • SubscriptionID
  • Setup
  • Configuring your API
  • Logging a user in through Fitbit
  • Accepting a friend invitation
  • Inviting a Fitbit friend
  • Adding a Fitbit subscription
  • Deleting a Fitbit subscription
  • FAQ

Was this helpful?

  1. Core Reference
  2. Bubble-made Plugins

Fitbit

Last updated 1 year ago

Was this helpful?

Let users log in with their Fitbit accounts, fetch their workout data, and update their subscription status.

This is the short-form, technical reference for the Fitbit plugin. For a more in-depth explanation of the plugin and how it works, see our User Manual article below:

Article:

Signup/login with a social network

This workflow action allows you to integrate the Fitbit authentication event when registering a new user, or logging in an existing user.

OAuth provider

Allows the Fitbit editor to verify the correct social platform to login/signup the user.

Invite Fitbit friend

Send a friend request to another Fitbit user.

InvitedUserEmail

The email address of a user’s Fitbit account that the current user would like to send an invite to.

Accept Fitbit friend invitation

Accept a friend request from another Fitbit user.

FromUserID

When choosing to accept a friend request, this is the ID of a Fitbit user's account that will be added to the current user’s friend list.

Add Fitbit subscription

Start a Fitbit subscription.

SubscriptionID

The unique characters to reference a user's Fitbit subscription.

Delete Fitbit subscription

Remove a Fitbit subscription.

CollectionPath

Collection of data to retrieve notifications. If the collection is not provided, the list will include all subscriptions for the user.

Current user’s Fitbit profile

When adding dynamic data, this expression allows you to fetch and display the profile information from a user’s connected Fitbit account.

ID

The unique ID of a user’s Fitbit account.

Avatar

The profile photo from a user’s Fitbit account.

FullName

The full name from a user’s connected Fitbit account.

Nickname

The alternative name added to a user’s connected Fitbit account.

AboutMe

The profile description from a user’s connected Fitbit account.

Age

The age of a user saved within their Fitbit account.

Height

The height of a user saved within their Fitbit account.

Weight

The weight of a user saved within their Fitbit account.

DateOfBirth

The birth date of a user saved within their Fitbit account.

MemberSince

The date that a user initially created their Fitbit account.

Current user’s Fitbit daily activities

Allows you to fetch the user’s workout data from a specific date.

Activities

A list of all the recorded activities from a user’s account.

Goals_caloriesOut

Calorie burn goal represents either dynamic daily target from the premium trainer plan or manual calorie burn goal.

Goals_distance

The target distance traveled within a user’s Fitbit account for a specified date.

Goals_floors

The target amount of floors climbed within a user’s Fitbit account for a specified date.

Goals_steps

The target number of steps within a user’s Fitbit account for a specified date.

Current user’s Fitbit food log

Allows you to fetch the user’s log food intake data from a specified date.

Foods

The recorded foods a user consumed on a specified date.

Summary_calories

A summary of the total calories consumed by a user on a specified date.

Summary_carbs

A summary of the total carbs consumed by a user on a specified date.

Summary_fat

A summary of the total fat consumed by a user on a specified date.

Summary_fiber

A summary of the total fiber consumed by a user on a specified date.

Summary_protein

A summary of the total protein consumed by a user on a specified date.

Summary_sodium

A summary of the total sodium consumed by a user on a specified date.

Summary_water

A summary of the total water consumed by a user on a specified date.

Current user’s Fitbit sleep log

Allows you to fetch the user’s logged sleep data from a specific date.

TotalMinutesAsleep

A summary of the total minutes a user slept on a specified date.

TotalSleepRecords

The total number of sleep records stored within a user’s Fitbit account.

TotalTimeInBed

A summary of the total minutes a user spent in bed - both awake and asleep.

Current user’s Fitbit heart rate log

Allows you to fetch the user’s heart rate data logged from a specific date.

CaloriesOut

The total number of calories a user burnt on a specified date

Max

The max heart rate recorded on a specified date.

Min

The minimum heart rate recorded on a specified date.

Minutes

The duration of each session where a heart rate was elevated.

Name

The name given to a workout session where the user’s heart rate was elevated.

Current user’s Fitbit lifetime activities

The total activity statistics from a user’s Fitbit account. This is an overview of all their historical key data points, as well as achievement values.

Lifetime_total_caloriesOut

The total number of calories a user has burnt since the creation of their account.

Lifetime_total_distance

The total distance traveled by a user since the creation of their account.

Lifetime_total_floors

The total number of floors a user has climbed since the creation of their account.

Lifetime_total_activeScore

The average active score given to a user’s account based on their lifetime activity.

Current user’s Fitbit device

The Fitbit device model linked to the user’s account.

ID

The device ID on a user’s linked Fitbit device.

Battery

The current battery level of a user’s linked Fitbit device.

DeviceVersion

The device model of a user’s linked Fitbit device.

Type

The type of device linked to a user’s account e.g. fitness tracker, scales.

LastSyncTime

The last recorded time that a user’s device was synced to their account.

Current user’s Fitbit friends

A list of all the friends connected to a user’s Fitbit account.

ID

The unique ID of a friend’s Fitbit account.

Avatar

The profile photo of a friend’s Fitbit account.

FullName

The full name listed on a friend’s Fitbit account.

Nickname

The alternative name added to a friend’s Fitbit account.

AboutMe

The profile description from a friend’s Fitbit account.

Age

The age saved on a friend’s Fitbit account.

Height

The height saved on a friend’s Fitbit account.

Weight

The weight saved on a friend’s Fitbit account.

DateOfBirth

The date of birth saved on a friend’s Fitbit account.

MemberSince

The date that a user’s friend registered initially created their Fitbit account.

Current user’s Fitbit friends invitations

A list of the current friend requests to a user’s Fitbit account.

DateTime

The date and time that a friend request was sent.

User

The user who has sent the current user a Fitbit friend invite.

Current user’s Fitbit subscription

Allows you to fetch the user’s heart rate data logged from a specific date.

CollectionType

The type of Fitbit subscription e.g. activities, body, sleep, etc

OwnerID

The ID of the user who owns the subscription.

OwnerType

The type of entity who owns the current subscription e.g. user

SubscriberID

The ID of the subscriber that will receive the subscription notifications.

SubscriptionID

This is the unique ID of the subscription created by the API client application.

Setup

Configuring your API

Once the details of your app have been added, you’ll be provided with a client ID and secret key for your OAuth 2.0 integration.

Now, you’ll need to copy both the client ID and client secret keys into their relevant fields within your plugin settings.

Note: It’s also possible to enable a generic redirect URL within the Bubble plugin settings itself.

Logging a user in through Fitbit

After configuring your OAuth credentials, you can now use the ‘signup/login with social network’ step within a workflow. From the event dropdown menu, you’ll see an option to select the Fitbit OAuth provider. This event can be added to an element like a login button.

After a user clicks this button, they’ll be redirected to a Fitbit portal where they can verify their account, then be redirected back to the destination URL of your application.

Now, you can choose to display information from a user's Fitbit account by using the ‘current user’s Fitbit’ operator.

Accepting a friend invitation

To display a list of a user’s Fitbit friend invitations, start by adding a repeating group element to the page. The type of content for this repeating group will need to be configured as ‘Fitbit Friend Invitation’.

Now, you’ll also need to update the data source to display the ‘current user’s Fitbit friends invitations’.

Now, within the repeating group cell, you can display information from a user’s Fitbit profile who has sent a friend invitation.

From here, when the accept button is clicked, you can create a workflow and choose from the ‘accept Fitbit friend invitation’ event.

When configuring this workflow event, you’ll need to set the FromUserID to be the ‘current cell’s Fitbit friend’s invitation’s User ID’.

Inviting a Fitbit friend

In order to allow the current user to send a Fitbit friend invitation, select the ‘invite Fitbit friend’ workflow event.

Within this workflow event, you’ll need to configure an email value associated with a user’s Fitbit account. This can be attained through an input form.

Adding a Fitbit subscription

When adding a new Fitbit subscription, select the ‘add a Fitbit subscription’ event within your workflow editor.

Within a Bubble input, it’s possible to use the formula operator to generate a random character string.

Now, when configuring your subscription workflow event, it’s possible to use the value of this input field as the SubscriptionID.

We’d also recommend storing this SubscriptionID as a field under your user data type. This will allow you to reference this unique ID if the user chooses to delete their subscription at a later date.

Deleting a Fitbit subscription

When deleting a user’s Fitbit subscription, select from the ‘delete a Fitbit subscription’ workflow event.

When configuring this workflow step, you’ll need to provide the subscription type that the user will be canceling.

Note: If the CollectionPath is not provided, subscriptions will be deleted from all collections.

Next, you’ll need to verify what subscription ID you’ll be deleting. If you’ve stored the current user’s subscription ID within your database, you can reference this here.

FAQ

Once you’ve installed the Fitbit plugin, you’ll need to first create a to secure access to an OAuth key.

After registering a developer account, you’ll then need to register a new app within the Fitbit .

When adding a new subscriber, you’ll need to associate a SubscriptionID to the current user. This unique ID will be shared with Fitbit. As Fitbit states within their , this ID has a character limit of 50 characters.

(Have a suggested FAQ to help other Bubblers? Please visit our to get in touch with a member of our Support team!)

The Fitbit plugin
developer account
developer portal
API docs
Support center