Free Magento extension

Open Graph Extension for Magento 2

Add reliable Open Graph images and social metadata to Magento 2, Mage-OS, Adobe Commerce, and Hyvä storefronts without requiring a Mosaicora account.

composer require mosaicora/module-opengraph

Standalone by design

No Mosaicora account required

Mosaicora Open Graph works independently from the Mosaicora service. No account, subscription, or external connection is required.

The module uses your existing Magento product, category, and CMS media to create optimized Open Graph images and publish Open Graph and Twitter Card tags. Your store remains in control of its source images, configuration, and generated cache.

No vendor lock-in

Use the GPL-licensed module freely, with or without the Mosaicora service.

Hyvä compatible

Works through Magento’s layout and metadata systems without Hyvä-specific storefront templates.

Social metadata across your storefront

Sensible defaults work immediately, while store teams retain detailed control when they need it.

Storefront-wide metadata

Publish Open Graph and optional Twitter Card tags for products, categories, CMS pages, and the store homepage.

Optimized Magento images

Turn local catalog and CMS media into cached 1200×630 social-preview images without sending assets to an external service.

Store-scoped controls

Choose title, description, image sources, defaults, and image settings independently for each store view.

Hyvä compatible

Metadata is added through Magento’s layout and metadata systems, so Hyvä storefronts do not need replacement templates.

Duplicate-tag handling

Optionally remove competing social tags for the metadata keys generated by the module while leaving unrelated tags untouched.

REST and GraphQL access

Read the same resolved storefront metadata through public REST endpoints and native Magento GraphQL fields.

Magento ecosystem compatibility

The module supports the core storefront platforms and modules used by modern Magento stores.

  • Magento 2
  • Mage-OS
  • Adobe Commerce
  • Hyvä themes
  • PHP 8.1–8.5

Current image workflow

  1. 1Resolve the configured product, category, CMS, or default Magento image.
  2. 2Create and cache an optimized 1200×630 social-preview image from local media.
  3. 3Publish the image URL with the page’s Open Graph and optional Twitter Card tags.

Planned optional integration

Template-driven Mosaicora images will be additive

When the Mosaicora service becomes publicly available, a future module version will optionally connect Magento pages to Mosaicora’s branded, template-driven image generation. This will add another image source, not replace the standalone workflow. Magento-based image generation will remain available without an account, subscription, or vendor lock-in.

Install with Composer

Install from the Magento project root, then run the normal module upgrade and cache workflow.

Install and enable the module

composer require mosaicora/module-opengraph

bin/magento module:enable Mosaicora_OpenGraph
bin/magento setup:upgrade
bin/magento cache:flush config layout block_html eav full_page config_webservice

Read Open Graph metadata with GraphQL

query ProductOpenGraph($sku: String!) {
  products(filter: { sku: { eq: $sku } }) {
    items {
      open_graph {
        enabled
        tags {
          name
          content
        }
      }
    }
  }
}

Inspect the live Magento demo

Open a storefront page directly or run it through the free Open Graph Checker to see the metadata and social image together.

Bags category

Category metadata with a share-ready image generated from Magento media.

Joust Duffle Bag

Product metadata including image, price, currency, and availability.

Voyage Yoga Bag

A second product example using the module’s default resolution workflow.