Open Graph type
The page declares its content type for social media cards.
Link copied!
On this page
Impact
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
Related
- Page title
- Page description
- Readability
- Viewport meta tag
- www resolution
- Cumulative Layout Shift (CLS)
- First Contentful Paint (FCP)
- Interaction to Next Paint (INP)
- Largest Contentful Paint (LCP)
- Time to First Byte (TTFB)
- Open Graph site name
- Open Graph title
- Open Graph description
- Open Graph URL
- Open Graph image
- Open Graph image alt
- Usability grades on Project ScanGov
- ScanGov Usability
On this page