Forum Discussion
How to add social bar(Like,share,view) in SharePoint modern pages
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.
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