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.
1. Go to https://developers.facebook.com and log in.
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.
Note: Select Web as the platform for your app.
4. Fill in the Site URL with your own web app URL:
Then just submit.
Tip: 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:
ο»Ώ
And this popup window will appear:
ο»Ώ
Click on Basic Settings to be redirected on your settings page.
Tip: 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
Then go back to Facebook dashboard and set the following URLs for:
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.
ο»Ώ
And paste the following URI into Valid OAuth Redirect URIs field:
Then simply click on Save Changes to submit. Now, you can configure the plugin in your Bubble app.
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).
3. Paste the generated App ID and App Secret keys.
ο»Ώ
Congrats! You have successfully configured the Facebook plugin. Now, you can test the Sign in with Facebook option in your app.
This section isn't a required configuration, but just an important note.
In case you are using one of our templates with Sign in with Facebook as a feature, this endpoint is already created for you.
Warning: Please do not delete this endpoint from your app!
ο»Ώ
Here is the node script:
Note: The constant variable urlWithStatusconfirm should contain your own app URL with the confirmation page for deletion: const urlWithStatusconfirm = 'YOUR_PAGE_URL_HERE?id=${userInfo.user_id} ';
ο»Ώ