Install
Works with Drupal: ^9.4 || ^10 || ^11 || ^12Using Composer to manage Drupal site dependencies
Alternative installation files
Release notes
Bug fixes, new features and Drupal 12 readiness. Existing configuration and blocks keep working; run database updates (drush updb) after updating. The module also refreshes its own caches the first time the new code runs.
Fixed
- #3616132 Block buttons now follow the configured order.
- #3581596 Block "More" button setting is respected; Copy Link follows the transparent style.
- #3494444 Unchecked platforms stay removed from blocks (blocks saved by older releases are repaired).
- #3562677 Content field buttons follow the configured order.
- #3611578 The "More" popup loads only when opened, and its response is cacheable.
- #3593205 The content field is hidden by default on new displays.
- #3623926 Complete configuration schema; update hooks store settings with the right types.
- Share links are correctly encoded; MySpace, Truth Social, Yoolink and Care2 now share the right page; Mastodon has a share link; Copy Link works before the popup is opened; block label changes are saved.
New
- #3550561 Choose and order the platforms listed in the "More" popup.
- Choose whether share pages open in a centered popup window or a new tab.
- Platforms are defined in a YAML file; other modules can add platforms or alter them with hook_better_social_share_platforms_alter().
- Accessibility: the popup is a labelled dialog, and focus returns to the button on close.
Other
- #3601019 Drupal 12 readiness: deprecated APIs removed, PHP attributes for plugins.
- #3480843, #3488958 README and help page explain sharing vs. profile-link modules and the privacy model.
- The per-platform button templates are now one template; themes can still override a single platform (e.g. facebook.html.twig).
- Kernel and functional test coverage.