Skip to content
Scalekit Docs
Talk to an Engineer Dashboard

Facebook as your sign in option

Add Sign in with Facebook to your app: create a Meta app, register the Scalekit redirect URI and connect the app to Scalekit for social login.

This guide is for developers who want users to sign in to their app with a Facebook account. By the end, you’ll have a Facebook connection in Scalekit that uses your own Meta app, and a successful test sign-in.

A diagram showing "Your Application" connecting to "Scalekit" via OpenID Connect, which links to Facebook using OAuth 2.0.

Before you start, you need:

  1. Open social login settings

    In the Scalekit dashboard, go to Authentication > Auth Methods > Social Login.

  2. Open the Facebook connection

    Next to Facebook, click Edit.

    Scalekit dashboard Social Login list under Authentication, Auth Methods, with Facebook below Google, Microsoft, GitHub, LinkedIn, GitLab and Salesforce.

  3. Copy the redirect URI

    The OAuth Configuration page shows a Redirect URI. Copy it; you register it with Meta in the next section. Keep this page open to paste the Client ID and Client Secret from your Meta app. The Scopes are set to email and public_profile.

    Facebook OAuth Configuration page in Scalekit, showing the Redirect URI, empty Client ID and Client Secret fields, and the email and public_profile scopes.

  1. Create the app

    In Meta for Developers, click Create app. When asked for a use case, choose Authenticate and request data from users with Facebook Login.

  2. Add the email permission

    In the app dashboard, go to Use cases and click Customize on the Facebook Login use case. On Permissions and features, click Add next to email. Scalekit requests email and public_profile, and it needs the email address to sign the user in.

    Check that email and public_profile both show Ready for testing. Leave the other permissions as they are.

    Meta app use case Permissions and features page, with the email and public_profile permissions showing Ready for testing.

  3. Register the redirect URI

    In the same use case, open Settings. Paste the Scalekit redirect URI into Valid OAuth Redirect URIs, make sure Client OAuth login and Web OAuth login are on, and save.

  4. Copy the app credentials

    In App settings > Basic, copy the App ID. Click Show next to App secret and copy the secret.

    Meta app settings Basic page, showing the App ID field and the App secret field with its Show button.

  1. Paste the App ID into Client ID and the App secret into Client Secret
  2. Click Save changes
  3. Click Enable
  1. Click Test Connection in Scalekit
  2. Sign in with a Facebook account that has a role on your Meta app (admin, developer or tester), and approve the consent screen
  3. Check the summary table: it lists the attributes Scalekit received from Facebook, such as the user’s ID, name and email

Successful Facebook test connection in Scalekit, listing the attributes received from Facebook: sub, email, name, first_name, id and last_name.

While your Meta app is in development mode, only people with a role on the app can sign in. To let any Facebook user sign in, complete the steps Meta lists on the app dashboard (such as adding a privacy policy URL) and switch the app to Live.

  • Email address. Scalekit signs the user in with the email address on their Facebook account. If the account has no email address, or the user removes the email permission on the consent screen, the sign-in fails with a missing email error. Ask the user to sign in another way, or to add an email address to their Facebook account and try again.
  • Email verification. Facebook doesn’t tell Scalekit whether the email address is verified. Scalekit asks the user to verify their email the first time they sign in with Facebook.
  • Profile picture. Scalekit sends the user’s Facebook profile picture. Users who haven’t set one get no picture rather than Facebook’s default placeholder.
  • App secret proof. Scalekit signs its Graph API calls with an appsecret_proof, so you can turn on Require App Secret in your Meta app’s advanced settings.

Add the connection to your login flow: see Social logins.