Skip to content

OpenGraphArticle

OpenGraphArticle: OpenGraphBase & object

Open Graph Metadata for Articles

Type declaration

author?

optional author: string

The url of the author of the article.

Example

<meta property="article:author" content="https://example.com/authors/john-doe">

expirationTime?

optional expirationTime: string

The date when the article will expire.

Example

<meta property="article:expiration_time" content="2025-01-01T00:00:00Z">

modifiedTime?

optional modifiedTime: string

The date when the article was last modified.

Example

<meta property="article:modified_time" content="2024-03-28">

publishedTime?

optional publishedTime: string

The date when the article was published.

Example

<meta property="article:published_time" content="2024-03-01T12:00:00Z">

section?

optional section: string

A high-level section name.

Example

<meta property="article:section" content="Technology">

tags?

optional tags: string[]

The tags associated with the article.

Example

<meta property="article:tag" content="AI, Machine Learning">

type

type: "article"

The type of object.

Example

<meta property="og:type" content="article">