Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Media OpenGraph

Security covered Under active development 42 sites

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.

Drupal 11 · not 10

Ask your assistant about Media OpenGraph

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

  • media Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Sep 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 2
Maintenance
Dormant

Releases

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