Facebook social sign in
You can enable users to sign up and sign in using their Facebook credentials. To enable this, you’ll need a Facebook app and some developer know-how.
Copy the callback URL from Kinde
Link to this section- In Kinde, go to Settings > Authentication.
- If you have not yet added the Facebook social connection, select Add connection in the Social authentication section.
- Select Facebook, then Save.
- On the Facebook tile, select Configure.
- In the Callback URL section:
- If you use Kinde’s domain as your default, copy the Kinde domain URL.
- If you use custom domains, select the Use custom domain instead switch.
- If you have only one custom domain, copy the Custom domain URL. If you have custom domains for multiple organizations, select each one from the list and copy the callbacks for each. You need to enter all custom domain callbacks in the Meta app.
- Use the copied Callback URLs to set up the app, see below.
If you use Facebook Login for Business, some of the app creation and configuration steps might be different than those outlined below. See Meta’s documentation for detailed guidance.
Create a Meta app
Link to this sectionThe following steps were correct when we published this, but third-party providers sometimes change things. Here’s the Meta Developer docs in case you get stuck.
- Go to the Facebook/Meta developer space and select My apps, then Create app.
- On the Business portfolio page, select Next.
- On the Use cases page, select Authenticate and request data from users with Facebook Login option and then select Next.
- Follow the prompts and enter the app details, then select Create app.
- In the confirmation window that appears, select View dashboard.
- Under App settings, select Basic and copy the client ID and client Secret (labeled as App ID and App Secret) and paste them in a text file or somewhere you can easily copy them.
Configure the Meta app
Link to this sectionThe following steps were correct when we published this, but third party providers sometimes changes things. Here’s the Meta Developer docs in case you get stuck.
- In your Meta app dashboard, select Use cases then select Configure on the Authentication and account creation tile.
- On the Permissions tab, make sure
email
andpublic_profile
are selected. - On the Settings tab, add your callback URL in the Redirect URI field. E.g.
https://domain.kinde.com/login/callback
- Select Save changes at the bottom of the screen.
- Go back to the Dashboard page (home icon).
- In App settings, select Basic.
- Paste your Kinde domain URL in the App domains field, but do not include the https/http or path. For example, paste
yourdomain.kinde.com
. - Add other details such as app icon, category, terms of service and privacy policy link.
- Select Save changes.
- Paste your Kinde domain URL in the App domains field, but do not include the https/http or path. For example, paste
- Go to Settings > Advanced.
- Under Domain manager, select Add a domain to add your Kinde domain.
- When you add the domain here (include the https/http part of the URL).
- Under the Security section, ensure the Require app secret switch is turned off.
- Add any other relevant information.
- Select Save changes.
- Next, you’ll need to complete the preparation tasks and submit your app for approval. Note that this requires providing business documentation, contacts, etc. See the Review area for more information.
- Once the approval process is complete, you can publish the app.
See the Meta/Facebook docs for more information about apps.
Create a product in your Meta app
Link to this sectionThe following steps were correct when we published this, but third party providers sometimes changes things. Here’s the Meta Developer docs in case you get stuck.
- In your app dashboard, select Add product.
- Select the Opt in Facebook Login for Business prompt**.**
- When prompted, select Switch to Facebook Login for business.
- In the confirmation window, select Certain permissions aren’t available with this product as the reason.
- In the Select the permissions you require field that appears, select email and public_profile.
- Select Switch to Facebook Login.
- Enter the Kinde callback URLs in the Valid OAuth Redirect URLs field. Add entries for all your organization custom domain callbacks, e.g. account.customdomainone.com/login/callback, account.customdomaintwo.com/login/callback, etc.
- Select Save Changes.
- In the red warning message at the top of the page, select Get Advanced Access. The Permissions and Features page opens.
- Next to the email entry:
- Select Request advanced access.
- In the confirmation window, select the checkbox and enter your facebook password.
- Select Submit.
- Next to the public_profile entry:
- Select Request advanced access.
- In the confirmation window, select the checkbox and enter your Facebook password.
- Select Submit.
Add Facebook credentials to Kinde
Link to this section- In Kinde, go to Settings > Authentication.
- On the Facebook tile, select Configure.
- Paste the Client ID and Client secret from the Facebook app into the relevant fields.
- Select if you want to treat this connection as a trusted provider. A trusted provider is one that guarantees the email they issue is verified. We recommend leaving this off for maximum security.
- Select which applications will allow Facebook SSO.
- Select Save.
Users will now see Facebook as an option to sign up and sign in to the selected applications.
When an email is not provided
Link to this sectionFacebook does not require an email for sign up, but Kinde does. So if a user signs up with Facebook and an email is not detected, we will ask for one.
The user only needs to provide their email once, then they can sign in via Facebook without disruption.
If the email they provide is already detected in Kinde, we will automatically link the accounts so as not to duplicate.