Facebook

 

Want to let your users log into the Platform using their Facebook account? You can do that! To set up your Facebook external login, you'll need access to three places:

  • MinistryPlatform, with rights to the Identity Providers page.
  • Facebook's Developer Site, with rights to create a new app.
  • Your server. Important: If you do not have access to your server, coordinate this set up with someone who does. Contact Support for assistance.

Pro Tip: It will be helpful to be logged into the Platform and Facebook's Developer site at the same time.

Create an Identity Provider in the Platform
  1. Navigate to Administration > Identity Providers.
  2. Select New.
  3. Add a Display Name.
  4. Select Provider Type "Facebook."
  5. Add a Client ID. Note: This will be replaced during the set up process, so any value will be fine.
  6. Save
  7. Copy the Identity Provider Unique ID that is generated when you save. You'll need this later. Pro Tip: You'll need this value with all uppercase letters. Check out convertcase.net for a handy shortcut ;).
Create and Configure the Facebook App
  1. Log into Facebook's Developers site
  2. Create App
    • Select Create App.
    • Select Create a Connected Experience.
    • Provide the necessary information. Pro tip: Use an administrative email (for example, support@[yourchurch].com).
    • Select Create App.
  3. Configure App
    • Navigate to Dashboard > Add Products to Your App > Facebook login.
    • Select Set Up.
    • Select WWW.
    • Provide your website URL (for example, "https://[YOURDOMAIN]/ministryplatform").
    • Save.
    • Skip options 2-5.
  4. Navigate to Products > Facebook Login > Settings and make the following selections:
    • Client OAuth Login = Yes
    • Web OAuth Login = Yes
    • Enforce HTTPS = Yes
    • Force Web OAuth Reauthentication = No
    • Embed Browser OAuth Login = No
    • Use Strict Mode for Redirect URLs = Yes
    • Login from Devices = No

     

  5. Add your Valid OAuth Redirect URI
    • Add the Identity Provider Unique ID that was created when you set up the Facebook Identity Provider in the Platform as shown below.
    • Reminder: You'll need the Identity Provider Unique ID to contain all uppercase characters.
    • Save Changes.
https://[YourDomain]/ministryplatformapi/oauth/callback/[IdentityProviderUniqueID]
Add OAuth Data
  1. While still in the Dashboard, navigate to Settings > Basic and copy the App ID.
  2. Paste the App ID into the Client ID field on the Facebook Identity Provider record in the Platform.
  3. Back in the Facebook Developer's Settings > Basic, copy the App Secret.
  4. Paste the App Secret into the Client Secret field on the Facebook Identity Provider record in the Platform.
  5. While in the Platform, set the "Is Public" field to "Yes."
  6. Save the updated Facebook Identity Provider record.
  7. Return to the Facebook Developer's Settings > Basic, add any necessary contact information, and select Save Changes.
Recycle the App Pool & Test
  • Changes to identity providers are only picked up with a full application pool reset.
  • If you do not have access to your server, coordinate this set up with someone who does. And remember, you can always contact Support for assistance.
  • Pro Tip: Open an incognito window and navigate to the Platform. You should see the option to log in using Facebook.
  • To confirm you can link your Facebook account to the Platform, go to the Edit User Account screen, select Social Logins and then Facebook.
  • Note: After you've confirmed the Facebook login is working, you'll need to return to the Facebook Developer's app dashboard and toggle "In Development" off. You'll then be required to provide some additional information.