Chuck Tomasi

3 minute read

Step by step instructions for setting up Facebook authentication on a ServiceNow instance. A great use case for this is a government portal to enable single sign-on for citizens who already have a Facebook account.

This document is built on San Diego release.

Configure Facebook

  1. Begin by going to the Facebook Developer Dashboard.

  2. Click Create App in the upper right corner.


  3. Select Consumer (1) and click Next (2).


  4. Provide a name for your app (1), add the contact email (2), and click Create App (3).


  5. Provide your Facebook password when prompted and click Submit.


  6. Click Set up on the badge labeled Facebook Login from the available products to add to your app.


  7. Click Web from the choices of platforms.


  8. Enter your instance URL in the Site URL field (1) and click Save (2).

  9. On the left, under Facebook Login, select Settings (3).


  10. In the list of Valid OAuth Redirect URIs, enter the following two URLs, replacing “(yourinstance)” with your instance name.

    • https://(yourinstance)
    • https://(yourinstance)
  11. Click Save Changes.


  12. Navigate to Settings > Basic on the left (1).

  13. Enter your fully qualified instance name in the field App Domains (2) (e.g. Be sure to leave off https://.

  14. Enter your full instance URL in the Privacy Policy URL (3) (e.g.

  15. Enter the same URL in the Data deletion instructions URL (4).

  16. Click Save Changes (5).


  17. At the top of the same page, copy the App ID and App secret to some place safe. Treat these like a login and password!


Install plugins

  1. In your instance, navigate to All > System Applications > All Available Applications.


  2. Use the search filter to install the plugin Integration - Multiple Provider Single Sign-On Installer. Check the option to load the Demo Data.


  3. Search for, and install the plugin Approvals with e-Signature.


Configure the plugins

  1. Navigate to All > Auto Recovery > Properties.


  2. Uncheck Enable account recovery and Save.


  3. Navigate to All > Multi-Provider SSO > Administration > Properties.


  4. Check all three properties and Save.


Configure the identity provider

  1. Using your browser search, download a Facebook icon. Square, between 125x125px and 500x500px PNG or JPG format works best.

  2. Navigate to All > System UI > Images.

  3. Upload the image and note the URL - only the filename is important (e.g. /FacebookIcon.png.)

  4. Navigate to All > Multi-Provider SOO > Identity Providers.


  5. Open the record OIDC_Facebook.

  6. Fill in the following field/values:

    • (1) Active: true
    • (2) ServiceNow Homepage: https://(yourinstance)
    • (3) Logo URL: (path of the image noted above)
    • (4) Automatically provision users: true
    • (5) Update User on next login: true
    • (6) User roles applied to provisioned users: (choose appropriately)
  7. From the form menu, select Save.


  8. Select the OIDC Entity tab (1), and open the Facebook record (2).


  9. Fill in the form with the following field/values:

    • (1) Client ID: (Use the App ID from your Facebook app)
    • (2) Client secret: (Use the App Secret from your Facebook app)
    • (3) Redirect URL: https://(yourinstance)
  10. Click Update.



  1. Use a new browser, or incognito window and navigate to your instance.

  2. Validate you see the Facebook login button.


  3. Click the button.

  4. Provide your Facebook credentials and click Login.


  5. Click Continue as (username).


  6. If successful, you should have a new user provision after providing Facebook authentication and logged into the instance.

  7. From your original browser window (with admin rights), navigate to All > User Administration > Users and verify the new account was created in sys_user with the proper roles assigned.

Happy user logins!