This article will guide you through adding a "Continue with Facebook" button to your signup, login, and profile forms. Part one walks you through setting up your Facebook Developer account step by step. Part two covers how to configure Facebook Authentication in Memberstack and add the button to your front-end forms.
Prerequisites
Before you begin, ensure you have:
- A Memberstack account
- A Facebook Developer account
- Access to your website code or Webflow project
1) Facebook Developer Console
Step 1: Create a Facebook App
- Navigate to the Facebook for Developers portal.
- Click Create App.
- Fill in the required fields:
- App Display Name
- App Contact Email
- Click Next.
Step 2: Select the Use Case
-
On the page that appears, which is under the Use Cases section, tick the Authenticate and request data from users with Facebook Login option
-
Click Next
Step 3: Connect a Business Portfolio
On the page that appears you’ll be prompted to connect a business portfolio.
-
When asked “Which business portfolio do you want to connect to this app?”, select from the available options
-
If you don’t want to connect a business yet, you can choose:
“I don’t want to connect a business portfolio yet.”
However, note that this might limit your app’s ability to access certain data and complete verification until later.
-
Click Next
-
Click Go to dashboard
-
Enter your Facebook password in the popup that comes up.
✅ Connecting a verified business portfolio is required for full access to Facebook Login and related permissions.
Step 4: Configure OAuth Settings
-
Upon completing Step 3, you’ll be redirected to the dashboard. On the dashboard, click on Customize adding a Facebook Login button option
-
Under the Permission Settings, click Add next to Email to grant access to the user’s primary email address.
-
In the left sidebar, click Settings
-
Under Valid OAuth Redirect URIs,
Enter:
https://client.memberstack.com/auth/callback
Otherwise, if you're using a custom domain, enter:
https://memberstack-client.yourdomain.com/auth/callback
(Make sure to replace
yourdomain.com
with your actual domain name.)
⚠️ This step is essential! Without the correct OAuth redirect URI, authentication will fail.
- Click Save Changes
- Navigate to Settings > Basic page and complete the following fields:
Field | Description |
---|---|
Display Name | The public name of your app (shown during login). |
Namespace | Optional — used in some internal links. |
App Domains | Add your domain here (e.g., yourdomain.com ). |
Contact Email | Your public email address for app support. |
Privacy Policy URL | Link to your website's privacy policy. (Required for app review) |
Terms of Service URL | Link to your website’s terms of service. (Optional but recommended) |
User Data Deletion | Choose Data Deletion Instructions URL and add a page on your site that explains how users can request deletion of their data. |
App Icon (1024x1024) | Upload a square icon for your app. (Required for production) |
Category | Choose the category that best describes your app. |
Data Protection Officer Contact (Optional) | If applicable, enter the contact details of your DPO, including: |
⚠️ Please take note of your App ID and App Secret — you’ll need them when setting up Facebook Auth in Memberstack.
Step 5: Complete Business Verification
- In your Facebook App Dashboard, go to the Review tab on the sidebar and click Verification.
- Click the Start Verification button and walk through the steps:
- Provide your business details (name, address, phone, email, and website).
- Choose a method for Facebook to contact you and verify your connection to the business.
- Upload official documents to confirm your business identity.
⏳ Once submitted, Facebook will review your application. This can take a few days.
⚠️ Note: Facebook Authentication will still work during the review process, but certain actions or data access may continue prompting for verification until it's completed.
Step 6: Publish Your App
- Once your Business Verification is approved, go to the Publish section in the left-hand sidebar of your Facebook App Dashboard.
- Click the “Publish” button.
- Confirm the action to switch your app from Development Mode to Live.
✅ Your app is now live and ready to handle real users through Facebook Login on your Memberstack site.
2) Memberstack and Webflow
Step 1: Connect Facebook in Memberstack
-
Log in to your Memberstack dashboard.
-
Navigate to Settings > Auth Providers
-
Click the Configure button next to Facebook.
-
Paste your Facebook App ID and App Secret into the respective fields. To find them, go to your Facebook App Dashboard and navigate to Settings > Basic from the left sidebar.
⚠️ Ensure you click Show to reveal the full App Secret — Facebook may prompt you to enter your password first. Copying the masked version (****) will result in authentication errors.
-
Toggle the switch to enable Facebook Auth (bottom-left), then click Save.
Step 2: Add the Facebook Button to Your Signup Form
-
Copy either the Light Theme Facebook Button or the Dark Theme Facebook Button from Memberstack's Social Auth Components. These buttons are fully built in Webflow, come with all necessary attributes, and are easy to customize. (If you prefer to create your own button, make sure to add the
data-ms-auth-provider="facebook"
attribute to it.) -
Paste the button inside your signup form (not inside a form block).
⚠️ Important: The Facebook button must be inside a proper Memberstack signup form. Placing it in a form block or outside the form may cause it to stop working.
Step 3: Publish and Test
- Publish your Webflow site to make the changes live.
- Open your live site and click the "Continue with Facebook" button.
- You should be redirected to Facebook for authentication and then back to your site with a successful login session.
3) FAQ
Can members login using a sign up form?
Yes! By default, members who already have an account will automatically be logged.
Can members sign up using a login form?
By default no, but you can enable sign ups in login forms by adding a new attribute to your login modal buttons. Here's a 1-minute video tutorial showing how to add the attributes.
- Add the
data-ms-social-auth-allow-signup
attribute to your custom login forms (data-ms-form="login"
). - Add the
data-ms-social-auth-allow-signup
attribute to your login modal buttons (data-ms-modal="login"
).
Once complete, your social auth buttons will create accounts for new members.
Profile Forms
In this other tutorial, we'll create a UI for members to connect providers, view previously connected providers, and (optionally) disconnect providers.
Social Auth Buttons in Profile Forms
4) Common Errors
❌ Button Not Triggering Popup?
Cause: The Facebook button may not be inside the correct container or missing required attributes.
✅ Fix: Make sure the button is placed inside the signup form, not a form block. Verify that the data-ms-auth-provider="facebook"
attribute is correctly set.
❌ Error: OPError: invalid_client (Client authentication failed)
Cause: The App Secret was copied incorrectly — most likely the masked version (****
).
✅ Fix: Go to Settings > Basic in your Facebook app. Click Show to reveal the full App Secret (you may be prompted for your password). Copy and paste the actual value into Memberstack.
❌ "Submit for Login Review" Banner Appears
Cause: Facebook requires you to complete app review for certain permissions.
✅ Fix: Go to Review > Verification in the sidebar. Click Start Verification and follow the prompts to complete business verification and app review.
❌ "URL blocked: This redirect failed..."
Cause: Facebook doesn’t recognize or allow the provided redirect URI.
✅ Fix: Go to your Facebook app’s Facebook Login > Settings. Add this to Valid OAuth Redirect URIs:
Use:
https://client.memberstack.com/auth/callback
Otherwise, if you're using a custom domain, use:
https://memberstack-client.yourdomain.com/auth/callback
(Make sure to replace yourdomain.com
with your actual domain name.)
Comments
0 comments
Please sign in to leave a comment.