Forum Discussion
How to add social bar(Like,share,view) in SharePoint modern pages
Hi, hope all are doing well.
My requirements is to
1. Add the social bar(like,share,view) under each section in SharePoint modern pages. In SharePoint we have the social bar under each pages but my need is to view it under each section of SharePoint pages.
Please help me. Thanks in advance 🙂
4 Replies
bhavaM Unfortunately, this is not possible using SharePoint out of the box social bar settings.
You can only have single social bar section at the bottom of the SharePoint site page.
You can enable/disable SharePoint social bar at tenant or site level using PowerShell, check:
- Enable or Disable the Social Bar (Like, Views, Save for later) for individual SharePoint sites
- Enable or Disable the Social Bar (Like, Views, Save for later) in SharePoint at tenant level
You can build your own web parts using SharePoint Framework (SPFx) in SharePoint which will need development/coding experience. Check below links for more information:
- Overview of the SharePoint Framework - Microsoft documentation
- Build your first SharePoint client-side web part - Microsoft documentation
- Advanced Comments Box - SPFx web part code sample which might help you to get started with
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
- Lalit MohanIron Contributor
Hi bhavaM
Adding a social bar with "like," "share," and "view" functionalities under each section of SharePoint modern pages can enhance user engagement and collaboration. However, as of my last update in September 2021, SharePoint modern pages don't offer this feature out-of-the-box for individual sections. The built-in social bar is typically available for the entire page, not specific sections.
To achieve your desired functionality, you might need to consider custom development using SharePoint Framework (SPF x) or Power Apps. Here's a general approach you could take:
SharePoint Framework (SPF x) Solution: SharePoint Framework allows you to create custom web parts with your desired functionalities. You could create a custom web part that encapsulates each section and includes the social bar elements. Here's a high-level overview of the steps:
a. Create SPF x Web Part: Create an SPF x web part that represents a section of content.
b. Add Social Bar Components: Within your custom web part, you'll need to include the "like," "share," and "view" components. You might need to use SharePoint REST API or other relevant APIs to handle these actions.
c. Implement Sectioning: Implement the ability to divide your page content into sections using the web parts you've created.
d. Styling and Layout: Apply appropriate styling to ensure the social bar fits seamlessly with the rest of the page layout.
Power Apps Solution: Power Apps provides a no-code/low-code environment for building custom solutions. While it might be less powerful than SPF x for complex customizations, it can be simpler to work with.
a. Create Custom Cards: Use Power Apps to create custom cards that represent each section of content. Add the "like," "share," and "view" functionalities to these cards.
b. Implement Page Sections: Design your modern page by adding these custom cards as sections. You might need to use Power Apps' layout controls to achieve the desired layout.
c. Integration with SharePoint: Embed your Power Apps solution into the modern page to showcase the sections with the social bar.
Remember that custom development might require technical expertise, and you should thoroughly test your solution in a development or testing environment before deploying it to your live SharePoint site.
Since SharePoint's capabilities are continuously evolving, I recommend checking the latest documentation and resources on the official Microsoft SharePoint site or community forums to see if any new features have been introduced that might fulfill your requirements without extensive customization.
- LedzepCopper Contributor
Lalit Mohan​ ganeshsanap​ Hi, i know the post is old but have a question:
i have enabled the social bar on sharepoint certain site, it is enabled for all the pages but not on the homepage. is there any restrictions?
thanks
- bhavaMCopper ContributorThank you so much Lalit Mohan,
Could you please explain me elaborately about SharePoint Framework (SPF x) Solution, I am new to this.