Plugins
Templates

Facebook Login Plugin

This guide helps you set the Facebook plugin to enable the Sign in with Facebook option in your Bubble app.

The following instruction consists of two parts: Facebook for Developers - to configure your own account, and Bubble Editor - to configure the Plugins tab and check the Backend workflows.

Facebook for Developers

1. Go to https://developers.facebook.com and login.

2. Go to My Apps -> Create App to create a new App ID.

3. On your apps page, you can locate the list of Facebook Products. Find Facebook Login and click Set Up.

Select Web as the platform for your app.

4. Fill in the Site URL with your own web app URL:

https://my_project_here.bubbleapps.io/

Then just submit.

Click on Save, then simply hit Next to skip the following details, because we do not need them since we are using Bubble, thankfully.

5. Then click on this In development toggle:

Click on "In development" toggle

And this popup window will appear:

Basic Settings redirect

Click on Basic Settings to be redirected on your settings page.

Here, copy the App ID and App Secret as you'll need them later on.

Now it is required to fill in some details about your app, especially the Privacy Policy URL and Terms of Service URL.

7. Go to your Bubble editor and create two blank pages: privacy and terms

Create Privacy and Terms pages

Then go back to Facebook dashboard and set the following URLs for:

  • Privacy

https://my_project_here.bubbleapps.io/version-test/privacy
  • Terms of Service

https://my_project_here.bubbleapps.io/version-test/terms

At this point, just click on Save Changes as this is the bare minimum information required to proceed with testing the Sign in with Facebook in your Bubble app. When you decide to go Live, just complete all the details and verify your app.

8. Go to Facebook Login -> Settings form the left menu.

Product settings tab

And paste the following URI into Valid OAuth Redirect URIs field:

https://www.my_project_here.bubbleapps.io/api/1.1/oauth_redirect

Then simply click on Save Changes to submit. Now, you can configure the plugin in your Bubble app.

Bubble Editor

Plugins Tab

1. Go to Plugins -> Facebook plugin within your Bubble editor.

2. Mark the generic redirect URL checkbox (you'll see your own project name there).

Enable generic redirect URL

3. Paste the generated App ID and App Secret keys.

Paste the API Keys

Congrats! You have successfully configured the Facebook plugin. Now, you can test the Sign in with Facebook option in your app.

Backend workflows

This section isn't a required configuration, but just an important note

When using Sign in with Facebook option in your app, it is required to have a server side script to delete Facebook data from your app. This is based on Facebook policy. This script isn't triggered anywhere in your app because it is a webhook. It runs when users delete their app data from within their Facebook account.

In case you are using one of our templates with Sign in with Facebook as a feature, this endpoint is already created for you.

Please do not delete this endpoint from your app!

Backend workflows: Server script