Overview
In SharePoint Online modern pages, the Social Bar feature is introduced which includes Like, Share, and View buttons.
Users can like, Share, and see the number of views on the SharePoint modern page.
The social bar looks like the one below on the SharePoint Modern page.
Disable Social Bar steps
If one wants to disable the social bar on SharePoint Online, it can be done at 2 levels.
- Disable on-site level
- Disable on tenant level
Below are the commands using which it can be disabled on-site and tenant-level
- # SharePoint online admin center URL: $AdminCenterUrl = "https://sppoc-admin.sharepoint.com/"
Note. Please provide your admin center URL instead of https://sppoc-admin.sharepoint.com/
- # SharePoint online site URL: $SiteUrl = "https://sppoc-admin.sharepoint.com/sites/spdemo"
- Note. Please provide your site URL instead of https://sppoc-admin.sharepoint.com/sites/spdemo
- #Connect to SharePoint Online: Connect-SPOService -Url $AdminCenterUrl -Credential (Get-Credential)
- #Disable Social Bar on Site Pages: Set-SPOSite -Identity $SiteUrl -SocialBarOnSitePagesDisabled $true
- #Disable Social Bar on Tenant level: Set-PnPTenant -SocialBarOnSitePagesDisabled $true
Note. Social Bar can be disabled only with a command prompt. There is no option available from UI.
Conclusion
Social Bar can be disabled on the SharePoint online site and tenant level by running a PowerShell command.