Open Graph type

The page declares its content type for social media cards.

On this page

Impact

ScanGov impact ratings

About

The Open Graph type tag specifies the type of content being shared (e.g., website, article, video, etc.) and helps social media platforms understand how to render the content. It allows for better control over how the shared content is presented, ensuring that the correct type of preview is displayed, which enhances user engagement. Without this tag, the content may not display optimally on social platforms.

Risks

Social media shows wrong content type.

Why it's important

Specifies content type for social media, improving how links are displayed and enhancing engagement when shared online.

User stories

As a site visitor, I want the content shared from the website to display the correct type of information (e.g., article, video, website) so that I can easily understand the context and purpose of the link before clicking on it.

Code

Add inside <head>:

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

Error

ScanGov messaging when a site fails a standard:

Open Graph type is missing.

Guidance

Indicators

On this page