The social media share module allows the user to share the current page to different social media platforms. It is rendered as a block, you can place it anywhere of your site.
The module provides social media field type so that you can add it as a field in entity and take all benefits from field API.
It is flexible to share any page of the site whether it is a node, term, panels, view pages so on.
Currently, the module provides many services by default
- Facebook share
- Facebook messenger
- Linkedin
- Twitter
- Pinterest
- Email (Client email service(:mailto) , Forward email as model dialogue, forward email as a separate page)
- Whatsapp ( Optional, needs to be enabled in the configuration )
You have full flexibility to add more services, modify the elements before render, change orders or so on. You can also completely disabled any services from the configuration page(admin/config/services/social-media).
Event subscribe
The module provides an event so that others can develop an event subscriber to modify.
Event Subscriber name:-
social_media.add_more_social_media
-----------------------------------
Used for adding your own social media or extend more.
social_media.pre_execute
-----------------------------------
Used for modify the configuration array before executing.
social_media.pre_render
-----------------------------------
Used for modify element just before rendered.
Check the social_media.api file to see the implementation of an event subscriber. Also, check the readme file to get more details.
You can get more details of the project from
http://www.drupalsharing.com/project/social-media-share
Project information
- Module categories: Content Editing Experience, Developer Tools, Integrations
- 8,255 sites report using this module
- Created by takim on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.