Skip to content

Social Share

VIDEO WALKTHROUGH

Social Share: setup guide

3:10

Recorded on version 1.0.2 · Narrated walkthrough · English captions

Jump to a chapter 11 chapters
Read the full video transcript
Social Share 1.0.2 — Magento Admin setup

00:00:00 — Set up Social Share
Welcome to the Agentic Ecom Social Share setup guide. In a few simple steps, we'll configure the sharing buttons in Magento Admin, save the settings, and check the result.

00:00:11 — Open Social Share settings
Start in Magento Admin. Open Marketing, then look for Social Share and choose Settings. You can also reach the same page through Stores, Configuration, General, and Social Share. This guide assumes the extension is already installed.

00:00:27 — Choose the configuration scope
Before changing anything, check the Scope selector at the top of the page. We're using Default Config for this demonstration. If your store needs different settings by website or store view, choose that scope first and check which values are inherited.

00:00:43 — Enable the sharing buttons
Expand General Settings. Set Enable Social Share to Yes, and make sure Enable Share Buttons is also Yes. These two settings turn on the extension and its sharing controls. Next, open Share Button Settings to choose how the buttons will appear.

00:01:00 — Choose your destinations
Under Enabled Platforms, select the destinations you want customers to use. Version one point zero point two supports Facebook, X, Pinterest, LinkedIn, WhatsApp, and email. On Windows, hold Control to select more than one option. On a Mac, use Command. We'll keep all six selected here.

00:01:19 — Choose a button style
Choose a Button Style that suits your store. You can use icons with text, icons only, text only, rounded icons, or squared icons. We'll use Icon with Text, so each destination is easy to identify. Leave Show on Product Pages set to Yes to display the buttons on Luma product pages.

00:01:41 — Check the optional X cards
Enable Twitter Cards controls the optional summary-card metadata used by X. It does not guarantee a particular preview: the receiving network decides how a shared link appears. Magento already supplies product Open Graph tags in Luma. This module does not automatically add sharing buttons to category, C M S, or blog pages.

00:02:03 — Decide whether to record clicks
Open Optional Share Click Tracking. Record Share Clicks is off by default, and we'll leave it set to No. If you turn it on, Magento records share-button clicks in its database, so review your privacy notice first. A recorded click is not confirmation that someone completed a share or made a purchase.

00:02:23 — Save and verify your settings
When you're happy with the settings, click Save Config and wait for Magento's confirmation message. If your storefront still shows the previous settings, go to System, Cache Management, and refresh the relevant Magento caches. Then reload a product page to check the result.

00:02:42 — A quick result check
Here's the result: six sharing destinations on a Luma product page.

00:02:47 — Your setup checklist
That's the setup complete. Choose your scope, enable sharing, select your destinations and style, then save. For a headless storefront, your frontend developer must render the configured share links. You'll find the full written guide, including installation and Graph Q L details, at user guides dot Agentic Ecom dot net.

Social Share 1.0.2 adds product-page sharing on Magento Luma for Facebook, X, Pinterest, LinkedIn, WhatsApp and email. A headless storefront can query the same configured links over GraphQL and render its own controls. The extension does not load a third-party social SDK.

Illustration of the six Social Share destinations on a Luma product page

Find your licence key on My Licences. The key unlocks the modules owned by your account.

Terminal window
composer config repositories.agenticecom composer https://repo.agenticecom.net
composer config --global --auth http-basic.repo.agenticecom.net <YOUR-LICENCE-KEY> x
composer require agenticecom/module-socialshare:^1.0.3
php bin/magento module:enable AgenticEcom_SocialShare
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento cache:flush

AgenticEcom Core and Social Login are not required. Existing stores upgrading from 1.0.1 retain previous customer data; this release does not remove it.

Qualified store

Magento Open Source 2.4.9, PHP 8.5.10 and Luma.

Other setups

Test other Magento/PHP pairs and custom themes separately.

Destinations

Facebook, X, Pinterest, LinkedIn, WhatsApp and email.

Headless

Configuration and share URLs over GraphQL; build your own UI and metadata.
  1. Open Marketing → Social Share → Settings, or Stores → Configuration → General → Social Share. Select the correct store view if you use different configurations by store.

  2. Under General Settings, enable Social Share and Share Buttons. Under Share Button Settings, select the destinations, one of five button styles and Show on Product Pages. Save and flush Magento cache if the storefront still shows the old configuration.

  3. If wanted, enable Twitter Cards to add X summary-card tags in the document head. Magento already supplies product Open Graph tags in Luma. Receiving networks control their own previews; test a real product URL on the network you care about.

  4. Leave Optional Share Click Tracking → Record Share Clicks off unless you want to record share-button clicks in Magento. It is off by default. Review your privacy notice before enabling it.

Luma displays the configured block on product pages. Category, CMS and blog pages do not receive buttons automatically. A custom theme can integrate the PHP model for CMS-page links.

Use socialConfig for the selected destinations and style. Query socialShareButtons with a product ID or an HTTP(S) URL. Render and escape the returned values in your own frontend:

query SocialShareForProduct {
socialConfig {
shareEnabled
enabledPlatforms
buttonStyle
twitterCardsEnabled
}
socialShareButtons(productId: 42) {
buttons {
platform
label
shareUrl
windowSize
}
}
}

For a non-product page, supply url and optionally title and description instead of productId. An optional trackShare(platform:, url:, productId:) mutation records a click only when tracking is enabled. It validates the supported platform and HTTP(S) URL; it does not prove that anyone visited or purchased after sharing. Headless frontends provide their own Open Graph and X metadata.

  • Removed inactive Telegram and Reddit choices and filters previously saved values for them.
  • Added the missing Luma share-window script and corrected Pinterest’s public image URL.
  • Kept Magento’s native Open Graph output instead of adding duplicate tags. X summary cards remain optional.
  • Made share-click tracking opt-in, with GraphQL platform and URL validation.
  • Removed the unnecessary Core dependency and unused social-login setup from new installations.

The one-time purchase includes 12 months of updates and support. Renewal is optional and is never billed automatically. Eligible standalone extensions may renew at 60% of the then-current regular list price before the support term ends or within 30 days afterward, plus applicable tax. Purchased versions remain usable after support expires. Read the AgenticEcom licence and contact support@agenticecom.net for help.