Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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 you place a mailbox on Litigation Hold or assign it to a retention policy, the Facebook data is preserved. You can search third-party data by 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.
Prerequisites for setting up a connector for Facebook Business pages
Complete the following prerequisites before setting up and configuring a connector in the Microsoft Purview portal to import and archive data from your organization's Facebook Business pages.
You need a Facebook account for your organization's business pages. You need to sign in to this account when setting up the connector. Currently, you can only archive data from Facebook Business pages; you can't archive data from individual Facebook profiles.
Your organization must have a valid Azure subscription. If you don't have an existing Azure subscription, you can sign up for one of these options:
The connector for Facebook Business pages can import a total of 200,000 items in a single day. If there are more than 200,000 Facebook Business items in a day, none of those items are imported to Microsoft 365.
The user who sets up the custom connector in the Microsoft Purview portal (in Step 5) must be assigned the Data Connector Admin role. This role is required to add connectors on the Data connectors page in the Microsoft Purview portal. This role is added by default to multiple role groups. For a list of these role groups, see Roles in Microsoft Defender for Office 365 and Microsoft Purview compliance. Alternatively, an admin in your organization can create a custom role group, assign the Data Connector Admin role, and then add the appropriate users as members. For instructions, see:
Step 1: Create an app in Microsoft Entra ID
First, 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 more information, see Create an app in Microsoft Entra ID.
When you complete this step, save the following information to a text file. You'll use these values 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
Next, deploy the source code for the Facebook Business pages connector app. This app uses 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 uploads the items from your Facebook Business pages to the Azure Storage location that you create in this step. After you create a Facebook business pages connector in the Microsoft Purview portal (in Step 5), the Import service copies the Facebook business pages data from the Azure Storage location to a mailbox in your Microsoft 365 organization. As explained in the Prerequisites section, you must have a valid Azure subscription to create an Azure Storage account.
For more information, see Deploy the connector web service from GitHub to your Azure account.
When you complete this step, provide the following information:
- APISecretKey: 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 you complete this step, 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
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 more information, see Register the Facebook app.
When you complete this step, save the following information to a text file. You use these values 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
Add configuration settings to the Facebook connector app that you uploaded when you created the Azure web app resource in Step 1. Go to the home page of your connector app and configure it.
For more information, see Configure the Facebook connector app.
When you complete this step, provide the following information (that you 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 Microsoft Purview portal
In this step, you set up the connector in the Microsoft Purview portal that imports data from your Facebook Business pages to a specified mailbox in Microsoft 365. When you finish this step, the Microsoft 365 Import service starts importing data from your Facebook Business pages to Microsoft 365.
For more information, see Step 5: Set up a Facebook connector in the Microsoft Purview portal.
As you complete this step, you provide the following information, which you copy 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 (created in Step 2)