Applies to Product -Power Pages
What’s happening?
Customers are unable to find a way to gather data and statistics on the usage or the number of people using the Facebook login on the portal.
Reason:
Dynamics 365 does not provide an out-of-the-box report that details the number of people authenticated through Facebook. The available report in the Power Platform Admin only counts authentications and does not show individual contact details.
Resolution:
- PowerShell Script: A script can be executed using PowerShell to retrieve the count of Facebook authentications. The script includes the following commands: powershell # Connect to Azure AD Connect-AzureAD # Fetch Sign-in Logs $signins = Get-AzureADAuditSignInLogs # Filter logs for Facebook authentication $facebookLogins = $signins | Where-Object { $_.AuthenticationDetails[].AuthenticationMethod -eq "Facebook" } # Export to CSV $facebookLogins | Export-Csv -Path "path_to_your_file.csv" -NoTypeInformation Adjust the script according to your needs and environment.
- Documentation: Refer to product documentation for additional instructions on setting up Azure B2C for Power Pages.
