You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Add Facebook as an identity provider for External Identities
21
21
22
22
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.
23
25
24
26
## Create an app in the Facebook developers console
25
27
@@ -51,7 +53,9 @@ To use a Facebook account as an [identity provider](identity-providers.md), you
51
53
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**.
52
54
53
55
## 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.
54
57
58
+
### To configure Facebook federation in the Azure AD portal
55
59
1. Sign in to the [Azure portal](https://portal.azure.com) as the global administrator of your Azure AD tenant.
56
60
2. Under **Azure services**, select **Azure Active Directory**.
57
61
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
62
66

63
67
64
68
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.
> 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.
> For more information, see [Remove-AzureADMSIdentityProvider](https://docs.microsoft.com/powershell/module/azuread/Remove-AzureADMSIdentityProvider?view=azureadps-2.0-preview).
65
101
66
102
## Next steps
67
103
68
-
-[Invite external users for collaboration](add-users-administrator.md)
69
104
-[Add self-service sign-up to an app](self-service-sign-up-user-flow.md)
0 commit comments