Skip to content

Commit 7afec55

Browse files
authored
Merge pull request #115573 from jkdouglas/jodougla-exiddocuments
Update Facebook instructions to be more descriptive
2 parents 11d7b65 + ace41ba commit 7afec55

File tree

1 file changed

+36
-1
lines changed

1 file changed

+36
-1
lines changed

articles/active-directory/b2b/facebook-federation.md

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ ms.collection: M365-identity-device-management
2020
# Add Facebook as an identity provider for External Identities
2121

2222
You can add Facebook to your self-service sign-up user flows (Preview) so that users can sign in to your applications using their own Facebook accounts. To allow users to sign in using Facebook, you'll first need to [enable self-service sign-up](self-service-sign-up-user-flow.md) for your tenant. After you add Facebook as an identity provider, set up a user flow for the application and select Facebook as one of the sign-in options.
23+
> [!NOTE]
24+
> Users can only use their Facebook accounts to sign up through apps using self-service sign-up and user flows. Users cannot be invited and redeem their invitation using a Facebook account.
2325
2426
## Create an app in the Facebook developers console
2527

@@ -51,7 +53,9 @@ To use a Facebook account as an [identity provider](identity-providers.md), you
5153
18. To make your Facebook application available to Azure AD, select the Status selector at the top right of the page and turn it **On** to make the Application public, and then select **Switch Mode**. At this point the Status should change from **Development** to **Live**.
5254

5355
## Configure a Facebook account as an identity provider
56+
Now you'll set the Facebook client ID and client secret, either by entering it in the Azure AD portal or by using PowerShell. You can test your Facebook configuration by signing up via a user flow on an app enabled for self-service sign-up.
5457

58+
### To configure Facebook federation in the Azure AD portal
5559
1. Sign in to the [Azure portal](https://portal.azure.com) as the global administrator of your Azure AD tenant.
5660
2. Under **Azure services**, select **Azure Active Directory**.
5761
3. In the left menu, select **External Identities**.
@@ -62,8 +66,39 @@ To use a Facebook account as an [identity provider](identity-providers.md), you
6266
![Screenshot showing the Add social identity provider page](media/facebook-federation/add-social-identity-provider-page.png)
6367

6468
7. Select **Save**.
69+
### To configure Facebook federation by using PowerShell
70+
1. Install the latest version of the Azure AD PowerShell for Graph module ([AzureADPreview](https://www.powershellgallery.com/packages/AzureADPreview)).
71+
2. Run the following command:
72+
`Connect-AzureAD`.
73+
3. At the sign-in prompt, sign in with the managed Global Administrator account.
74+
4. Run the following command:
75+
76+
`New-AzureADMSIdentityProvider -Type Facebook -Name Facebook -ClientId [Client ID] -ClientSecret [Client secret]`
77+
78+
> [!NOTE]
79+
> Use the client ID and client secret from the app you created above in the Facebook developer console. For more information, see the [New-AzureADMSIdentityProvider](https://docs.microsoft.com/powershell/module/azuread/new-azureadmsidentityprovider?view=azureadps-2.0-preview) article.
80+
81+
## How do I remove Facebook federation?
82+
You can delete your Facebook federation setup. If you do so, any users who have signed up through user flows with their Facebook accounts will no longer be able to log in.
83+
84+
### To delete Facebook federation in the Azure AD portal:
85+
1. Go to the [Azure portal](https://portal.azure.com). In the left pane, select **Azure Active Directory**.
86+
2. Select **External Identities**.
87+
3. Select **All identity providers**.
88+
4. On the **Facebook** line, select the context menu (**...**) and then select **Delete**.
89+
5. Select **Yes** to confirm deletion.
90+
91+
### To delete Facebook federation by using PowerShell:
92+
1. Install the latest version of the Azure AD PowerShell for Graph module ([AzureADPreview](https://www.powershellgallery.com/packages/AzureADPreview)).
93+
2. Run `Connect-AzureAD`.
94+
4. In the sign-in prompt, sign in with the managed Global Administrator account.
95+
5. Enter the following command:
96+
97+
`Remove-AzureADMSIdentityProvider -Id Facebook-OAUTH`
98+
99+
> [!NOTE]
100+
> For more information, see [Remove-AzureADMSIdentityProvider](https://docs.microsoft.com/powershell/module/azuread/Remove-AzureADMSIdentityProvider?view=azureadps-2.0-preview).
65101
66102
## Next steps
67103

68-
- [Invite external users for collaboration](add-users-administrator.md)
69104
- [Add self-service sign-up to an app](self-service-sign-up-user-flow.md)

0 commit comments

Comments
 (0)