
Social Share for Magento 2 — Lightweight, Secure Share Buttons
Social Share adds clean, fast share buttons to your Magento 2 product pages — Facebook, X (Twitter), Pinterest, LinkedIn, WhatsApp and email — and writes Open Graph and Twitter Card tags so your products look right when shoppers post them. It loads no third-party social SDKs and URL-encodes e…
Let shoppers do your marketing — without slowing your store
A share button is one of the cheapest ways to reach new buyers: a happy customer posts your product, and their network sees it. The catch is that most share extensions pull in heavy third-party social SDKs that load tracking scripts on every page, hurt your Core Web Vitals, and quietly send your visitors' data to ad networks. Social Share takes the opposite approach — native platform links, no external JavaScript, every URL encoded — so you get the reach without the page-speed and privacy cost.
What you'll use it for
- Turn customers into reach — make it one tap for a shopper to post your product to their network.
- Win the share preview — Open Graph and Twitter Cards mean a clean image, title and price, not a stray thumbnail and a bare URL.
- Protect page speed — drop the heavyweight share widgets that load third-party scripts and drag down Largest Contentful Paint.
- Power a headless storefront — pull the same buttons and meta config into Astro or any frontend over GraphQL.
How it works
The platforms, built in
Each button opens the platform's own native share dialog — Facebook's sharer, an X intent tweet, a Pinterest pin (with your product image), a LinkedIn share, a WhatsApp message, or a pre-filled email. Choose which platforms appear, and a sensible set is enabled out of the box. Open Graph and Twitter Card tags are written into the page head so the shared post shows a proper product card.
Lightweight and safe — the difference that matters
No third-party social SDK is ever loaded. Heavyweight share widgets inject Facebook and X JavaScript that tracks your visitors and adds render-blocking weight to every page. Social Share uses only each platform's native share-link — and every value placed into those links is URL-encoded and stripped of tags, so a product name or URL can never break out of the link or inject script. You get sharing that's fast, private, and XSS-safe by construction.
Specifications
| Share targets | Facebook, X (Twitter), Pinterest, LinkedIn, WhatsApp, email |
|---|---|
| Button styles | Icon + text, icon only, text only, rounded icons, squared icons |
| Placement | Product pages (toggle); CMS-page sharing supported by the model |
| Social meta | Open Graph (type, title, image, price) and Twitter summary_large_image cards |
| Loaded scripts | None from third parties — native share links only |
| Safety | All link parameters URL-encoded and tag-stripped (XSS-safe) |
| Headless | GraphQL socialConfig and socialShareButtons queries, plus a trackShare mutation |
| Scope | Configurable per store view |
| Delivery & licence | Composer install, per-domain licence key, updates via Composer |
Works with
Part of the AgenticEcom suite for SEO & Content:
Included in the Growth and Enterprise bundles.
Frequently asked questions
Which platforms can shoppers share to?
Facebook, X (Twitter), Pinterest, LinkedIn, WhatsApp and email. You choose which appear on your product pages, and the most common set is enabled by default.
Will the share buttons slow my store down?
No. Unlike widgets that load Facebook or X JavaScript, this module uses each platform's native share link only — no third-party scripts are added to your pages, so there's no render-blocking weight and nothing tracking your visitors.
Do shared products show a proper image and title?
Yes. The module writes Open Graph and Twitter Card meta tags — product title, image and price — so a shared link appears as a rich card rather than a bare URL.
Can I use it with a headless or Astro storefront?
Yes. The share configuration and button data are exposed over GraphQL, with a trackShare mutation, so a decoupled frontend can render the same buttons your Luma store uses.
Which Magento and PHP versions are supported?
Magento Open Source 2.4.9 and later 2.4.x, verified on PHP 8.4 and 8.5, with no third-party dependencies.

