Disable Social Bar (Like, Share and Views) in SharePoint Online

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.

Tainning

Disable Social Bar steps

If one wants to disable the social bar on SharePoint Online, it can be done at 2 levels.

  1. Disable on-site level
  2. Disable on tenant level

Below are the commands using which it can be disabled on-site and tenant-level

  1. # 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/
  2. # SharePoint online site URL: $SiteUrl = "https://sppoc-admin.sharepoint.com/sites/spdemo"
  3. Note. Please provide your site URL instead of https://sppoc-admin.sharepoint.com/sites/spdemo
  4. #Connect to SharePoint Online: Connect-SPOService -Url $AdminCenterUrl -Credential (Get-Credential)
  5. #Disable Social Bar on Site Pages: Set-SPOSite -Identity $SiteUrl -SocialBarOnSitePagesDisabled $true
  6. #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.