PHPackages                             viraxpress/meta-og-twitter - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. viraxpress/meta-og-twitter

ActiveMagento2-module[Utility &amp; Helpers](/categories/utility)

viraxpress/meta-og-twitter
==========================

ViraXpress Meta, Open Graph and Twitter Card Module for Magento 2

1.0.0(3mo ago)01Apache-2.0PHPPHP ~8.1.0||~8.2.0||~8.3.0||~8.4.0

Since Apr 10Pushed 1mo agoCompare

[ Source](https://github.com/viraxpress/MetaOgTwitter)[ Packagist](https://packagist.org/packages/viraxpress/meta-og-twitter)[ RSS](/packages/viraxpress-meta-og-twitter/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

ViraXpress Meta, Open Graph and Twitter Card Module
===================================================

[](#viraxpress-meta-open-graph-and-twitter-card-module)

A powerful Magento 2 extension that automatically generates and manages Open Graph (OG) and Twitter Card meta tags for your store's products, categories, and CMS pages.

Description
-----------

[](#description)

The ViraXpress Meta, Open Graph and Twitter Card Module enhances your store's social media sharing capabilities by automatically generating rich, customizable meta tags for social platforms. With this extension, when customers share your products, categories, or pages on social media, they appear with attractive preview cards featuring images, titles, and descriptions.

This module provides complete control over how your store content appears across Facebook, Twitter, LinkedIn, and other social platforms that support Open Graph and Twitter Card standards.

Features
--------

[](#features)

### Open Graph (OG) Tags

[](#open-graph-og-tags)

- **Multi-Entity Support**: Generate OG tags for CMS pages, product pages, and category pages
- **Customizable OG Title**: Choose which product/category/page attributes to use as the OG title
- **Customizable OG Description**: Configure which attributes populate the OG description
- **Automatic Truncation**: Descriptions are automatically truncated to 200 characters for optimal display
- **Enable/Disable Per Entity**: Independently toggle OG tag generation for each entity type

### Twitter Card Tags

[](#twitter-card-tags)

- **Multiple Card Types**: Support for Summary, Photo, Video, Player, and App card types
- **Twitter Site Configuration**: Set your Twitter site username for card attribution
- **Twitter Author Handle**: Configure the default author handle for content
- **Multi-Entity Support**: Configure Twitter tags for CMS pages, products, and categories
- **Title and Description Customization**: Map entity attributes to Twitter card titles and descriptions
- **Automatic Character Truncation**: Descriptions truncated to 200 characters for Twitter display
- **Enable/Disable Per Entity**: Independently control Twitter tag generation for each content type

### App Card Integration

[](#app-card-integration)

- **iOS Support**: Configure iPhone and iPad app details including:
    - App ID from Apple App Store
    - App name
    - Custom URL scheme or App Store link
- **Android Support**: Configure Android app details including:
    - App ID from Google Play Store
    - App name
    - Custom URL scheme or Play Store link

### Player Card Integration

[](#player-card-integration)

- **Media Player Support**: Embed media players with configurable:
    - Player URL
    - Player width and height
    - Direct player framework integration

### Administrative Control

[](#administrative-control)

- **Centralized Configuration**: Manage all settings from Stores &gt; Configuration &gt; ViraXpress -&gt; OG and Twitter Meta Tags
- **Scope-Based Settings**: Configure OG and Twitter tags at global, website, or store level
- **General Control**: Enable/disable tags independently for each content type and scope
- **Flexible Mapping**: Map any product, category, or page attribute to OG/Twitter tag fields

Compatibility
-------------

[](#compatibility)

- Magento 2.4.x

Installation
------------

[](#installation)

1. Install the extension via Composer:

    ```
    composer require viraxpress/meta-og-twitter
    ```
2. Run the following commands from your Magento root directory:

    ```
    php bin/magento module:enable ViraXpress_MetaOgTwitter
    php bin/magento setup:upgrade
    php bin/magento setup:di:compile
    php bin/magento setup:static-content:deploy -f
    php bin/magento cache:flush
    ```

Configuration
-------------

[](#configuration)

### Accessing Configuration

[](#accessing-configuration)

1. Navigate to **Stores** &gt; **Configuration** -&gt; **ViraXpress** in the Magento Admin Panel
2. Look for the **OG and Twitter Meta Tags** section.
3. Expand to view configuration options for OG Tags and Twitter Tags

### Configuring OG Tags

[](#configuring-og-tags)

#### For CMS Pages:

[](#for-cms-pages)

1. Go to **OG Tags** &gt; **Tags for CMS Pages**
2. **Enable OG Tags**: Toggle to enable/disable OG tag generation
3. **OG Title**: Select which page attribute to use as the title
4. **OG Description**: Select which page attribute to use as the description

#### For Category Pages:

[](#for-category-pages)

1. Go to **OG Tags** &gt; **Tags for Category Page**
2. **Enable OG Tags**: Toggle to enable/disable OG tag generation for categories
3. **OG Title**: Select which category attribute (Name, Description, etc.) to use as the title
4. **OG Description**: Select which category attribute to use as the description

#### For Product Pages:

[](#for-product-pages)

1. Go to **OG Tags** &gt; **Tags for Product Page**
2. **Enable OG Tags**: Toggle to enable/disable OG tag generation for products
3. **OG Title**: Select which product attribute (Product Name, SKU, etc.) to use as the title
4. **OG Description**: Select which product attribute to use as the description

### Configuring Twitter Tags

[](#configuring-twitter-tags)

#### Global Twitter Settings:

[](#global-twitter-settings)

1. Go to **Twitter Tags** section
2. **Twitter Card Type**: Select from:
    - **Summary**: Default card type with summary text
    - **Photo**: Card featuring a photo/image
    - **Video**: Card for video content
    - **Player**: Card for embedded media players
    - **App**: Card for mobile app promotion
3. **Twitter Site Username**: Enter your Twitter site username (without @)
4. **Twitter Author Handle**: Enter the default author's Twitter handle

#### App Card Integration (when Card Type is "App"):

[](#app-card-integration-when-card-type-is-app)

1. Navigate to **App Card Integration** section
2. Configure for each platform:
    - **iPhone App ID**: Apple App Store ID
    - **iPhone App Name**: Display name from App Store
    - **iPhone App URL**: Deep link or custom scheme URL
    - **iPad App ID**: iPad app store ID
    - **iPad App Name**: Specify iPad app name
    - **iPad App URL**: Deep link for iPad
    - **Android App ID**: Google Play Store ID
    - **Android App Name**: Application name from Play Store
    - **Android App URL**: Deep link or Play Store URL

#### Player Card Integration (when Card Type is "Player"):

[](#player-card-integration-when-card-type-is-player)

1. Navigate to **Player Card Integration** section
2. **Player URL**: Enter the URL to your media player
3. **Player Width**: Set width in pixels (e.g., 800)
4. **Player Height**: Set height in pixels (e.g., 450)

#### For CMS Pages:

[](#for-cms-pages-1)

1. Go to **Twitter Tags** &gt; **Tags for CMS Page**
2. **Enable Twitter Tags**: Toggle to enable/disable Twitter tag generation
3. **Twitter Title**: Select which page attribute to use as the title
4. **Twitter Description**: Select which page attribute to use as the description

#### For Category Pages:

[](#for-category-pages-1)

1. Go to **Twitter Tags** &gt; **Tags for Category Page**
2. **Enable Twitter Tags**: Toggle to enable/disable Twitter tag generation
3. **Twitter Title**: Select the category attribute for the title
4. **Twitter Description**: Select the category attribute for the description

#### For Product Pages:

[](#for-product-pages-1)

1. Go to **Twitter Tags** &gt; **Tags for Product Page**
2. **Enable Twitter Tags**: Toggle to enable/disable Twitter tag generation
3. **Twitter Title**: Select the product attribute for the title
4. **Twitter Description**: Select the product attribute for the description

Frontend Output
---------------

[](#frontend-output)

Once configured, the module automatically:

1. Generates `` tags in the page `` section
2. Outputs OG tags with namespace `og:` (for Facebook and other platforms)
3. Outputs Twitter tags with namespace `twitter:` (for Twitter/X)
4. Truncates descriptions to 200 characters for optimal display
5. Escapes special characters to prevent injection attacks

### Example Generated Tags

[](#example-generated-tags)

**Open Graph Tags:**

```

```

**Twitter Card Tags:**

```

```

Support
-------

[](#support)

For support, please contact ViraXpress at  or refer to the license agreement.

License
-------

[](#license)

This extension is licensed under the ViraXpress license agreement. See  for details.

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance86

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

106d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/dfa4cf8adc10a78f5b538cdf399be5d1059c4cfecf5ca5e38e44351bcaf84367?d=identicon)[viraxpress](/maintainers/viraxpress)

---

Top Contributors

[![viraxpress](https://avatars.githubusercontent.com/u/179798477?v=4)](https://github.com/viraxpress "viraxpress (1 commits)")

### Embed Badge

![Health badge](/badges/viraxpress-meta-og-twitter/health.svg)

```
[![Health](https://phpackages.com/badges/viraxpress-meta-og-twitter/health.svg)](https://phpackages.com/packages/viraxpress-meta-og-twitter)
```

###  Alternatives

[mzur/kirby-uniform

A versatile Kirby plugin to handle web form actions.

26173.5k20](/packages/mzur-kirby-uniform)[stuttter/wp-multi-network

Provides a Network Management Interface for global administrators in WordPress Multisite installations.

23524.7k1](/packages/stuttter-wp-multi-network)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
