Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

Media OpenGraph

36 sites Security covered
View on drupal.org

This module allows you to create media items that embed external links with their associated metadata. It fetches and displays information like titles, descriptions, and images from web pages, similar to how social media platforms preview links. Site administrators can customize which metadata is displayed and how it's rendered.

ABOUT

Media OpenGraph provides a new media source plugin and a default media type
using it.

This media type renders similar to pasting a link into Twitter or Facebook -
grabs the metatags/open graph tags from an external link and renders a preview
locally. The default media type maps an image metatag, title and description
with some very basic styling. It is expected that most sites would want to
custom style/theme.

Example of three rendered urls:

  • First with no description tag.
  • Second with neither image nor description tags.
  • Third with description, image and title tags.

REQUIREMENTS

Drupal 9 or 10 with media enabled. Media Library is recommended.

INSTALLATION

Install as you would normally install a contributed Drupal module. See the
install docs
if required in the Drupal documentation for further information.
Composer is required.

CONFIGURATION

Site builders can customize the mapping of metatags to fields by creating a
new media type or editing the default media type.

Metatags results from fetching of pages is cached in the Drupal backend cache
for 1hr. Any mapped metadata onto fields on media are normally semi-permanent
ie, only changed if you change the source field and resave. Metatags on pages
outside of your site/control are a lot more likely to change than metadata on
files that you've uploaded. By default data is cached for 1 week.

Advanced site builders can use non-documented metatags by manually editing and
importing config.

FAQ

Any questions? Ask away on the issue queue or contact the maintainer.

Activity

Total releases
2
First release
Sep 2025
Latest release
9 months ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Slowing

Releases

Version Type Release date
2.0.0 Stable Sep 29, 2025
2.x-dev Dev Sep 28, 2025