Delen via


Set up a connector to archive Facebook data (preview)

Use a connector to import and archive data from Facebook Business pages to Microsoft 365. After you set up and configure the connector, it connects to the Facebook Business page (on a scheduled basis), converts the content of Facebook items to an email message format, and then imports those items to a mailbox in Microsoft 365.

After the Facebook data is imported, you can apply Microsoft Purview features such as Litigation Hold, Content Search, In-Place Archiving, Auditing, Communication compliance, and Microsoft 365 retention policies to the Facebook data. For example, when a mailbox is placed on Litigation Hold or assigned to a retention policy, the Facebook data is preserved. You can search third-party data using Content Search or associate the mailbox where the Facebook data is stored with a custodian in a Microsoft Purview eDiscovery (Premium) case. Using a connector to import and archive Facebook data in Microsoft 365 can help your organization stay compliant with government and regulatory policies.

If you’d like to participate in the preview, please reach out to the team at dcfeedback@microsoft.com.

Tip

If you're not an E5 customer, use the 90-day Microsoft Purview solutions trial to explore how additional Purview capabilities can help your organization manage data security and compliance needs. Start now at the Microsoft Purview compliance portal trials hub. Learn details about signing up and trial terms.

Prerequisites for setting up a connector for Facebook Business pages

Complete the following prerequisites before you can set up and configure a connector in the Microsoft Purview portal or the Microsoft Purview compliance portal to import and archive data from your organization's Facebook Business pages.

Step 1: Create an app in Microsoft Entra ID

The first step is to register a new app in Microsoft Entra ID. This app corresponds to the web app resource that you implement in Step 4 and Step 5 for the Facebook connector.

For step-by-step instructions, see Create an app in Microsoft Entra ID.

During the completion of this step (by using the previous step-by-step instructions), you'll save the following information to a text file. These values are used in later steps in the deployment process.

  • Microsoft Entra application ID
  • Microsoft Entra application secret
  • Tenant Id

Step 2: Deploy the connector web service from GitHub to your Azure account

The next step is to deploy the source code for the Facebook Business pages connector app that will use the Facebook API to connect to your Facebook account and extract data so you can import it to Microsoft 365. The Facebook connector that you deploy for your organization will upload the items from your Facebook Business pages to the Azure Storage location that is created in this step. After you create a Facebook business pages connector in the Microsoft Purview portal or the compliance portal (in Step 5), the Import service will copy the Facebook business pages data from the Azure Storage location to a mailbox in your Microsoft 365 organization. As previous explained in the Prerequisites section, you must have a valid Azure subscription to create an Azure Storage account.

For step-by-step instructions, see Deploy the connector web service from GitHub to your Azure account.

In the step-by-step instructions to complete this step, you'll provide the following information:

  • APISecretKey: You create this secret during the completion of this step. It's used in Step 5.
  • TenantId: The tenant ID of your Microsoft 365 organization that you copied after creating the Facebook connector app in Microsoft Entra ID in Step 1.

After completing this step, be sure to copy the Azure app service URL (for example, https://fbconnector.azurewebsites.net). You need to use this URL to complete Step 3, Step 4, and Step 5).

Step 3: Register the web app on Facebook

The next step is to create and configure a new app on Facebook. The Facebook business pages connector that you create in Step 5 uses the Facebook web app to interact with the Facebook API to obtain data from your organization's Facebook Business pages.

For step-by-step instructions, see Register the Facebook app.

During the completion of this step (by following the step-by-step instructions), you save the following information to a text file. These values are used to configure the Facebook connector app in Step 4.

  • Facebook application ID
  • Facebook application secret
  • Facebook webhooks verify token

Step 4: Configure the Facebook connector app

The next step is to add configuration settings to the Facebook connector app that you uploaded when you created the Azure web app resource in Step 1. You do this by going to the home page of your connector app and configuring it.

For step-by-step instructions, see Configure the Facebook connector app.

During the completion of this step (by following the step-by-step instructions), you provide the following information (that you've copied to a text file after completing the previous steps):

  • Facebook application ID (obtained in Step 3)
  • Facebook application secret (obtained in Step 3)
  • Facebook webhooks verify token (obtained in Step 3)
  • Microsoft Entra application ID (the Microsoft Entra application ID obtained in Step 1)
  • Microsoft Entra application secret (the Microsoft Entra application secret obtained in Step 1)

Step 5: Set up a Facebook Business pages connector in the compliance portal

The final step is to set up the connector in the compliance portal that will import data from your Facebook Business pages to a specified mailbox in Microsoft 365. After you complete this step, the Microsoft 365 Import service will start importing data from your Facebook Business pages to Microsoft 365.

For step-by-step instructions, see Step 5: Set up a Facebook connector in the compliance portal.

During the completion of this step (by following the step-by-step instructions), you provide the following information (that you've copied to a text file after completing the steps).

  • Microsoft Entra application ID (obtained in Step 1)
  • Azure app service URL (obtained in Step 1; for example, https://fbconnector.azurewebsites.net)
  • APISecretKey (that you created in Step 2)