Sub topic 9
Controlling Link Previews with Open Graph
Assume you know basic HTML, how a newsroom page is structured, and what a URL does. This chapter focuses on the metadata that controls how a newsroom link appears when someone shares it on social networks and messaging platforms.
What Open Graph does
Open Graph is a metadata protocol created by Meta. A page places Open Graph properties inside its <head> element. A crawler reads those properties and builds a link preview from them.
The most important properties are:
| Property | Purpose | Example |
|---|---|---|
| `og:title` | Headline shown in the preview | `Acme launches Widget 2` |
| `og:description` | Short supporting text | `Widget 2 cuts setup time.` |
| `og:url` | Stable page URL | `https://example.com/newsroom/widget-2` |
| `og:type` | Kind of page | `article` |
| `og:image` | Preview image | An absolute image URL |
Use a different, descriptive set of values for each release. Do not let every page inherit the newsroom homepage title and image.
Add metadata to a release page
Place the tags in the document’s <head>. Use absolute URLs for og:url and og:image, because crawlers may not resolve relative paths consistently.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Acme launches Widget 2 | Acme Newsroom</title>
<meta name="description" content="Widget 2 cuts setup time for small teams.">
<meta property="og:type" content="article">
<meta property="og:title" content="Acme launches Widget 2">
<meta property="og:description" content="Widget 2 cuts setup time for small teams.">
<meta property="og:url" content="https://example.com/newsroom/acme-launches-widget-2">
<meta property="og:site_name" content="Acme Newsroom">
<meta property="og:image" content="https://example.com/img/widget-2-1200x630.jpg">
<meta property="og:image:alt" content="Widget 2 product on a desk">
<meta name="twitter:card" content="summary_large_image">
</head>
<body>
<h1>Acme launches Widget 2</h1>
</body>
</html>The regular description helps search results and other consumers. It does not replace og:description. Keep both descriptions aligned unless you have a clear reason to write different versions.
For a newsroom index, use website as the og:type. For an individual release, use article. Keep the headline short enough that platforms can display it without awkward truncation. Write the description as a useful summary, not as a list of keywords.
Choose and test the image
A large landscape image usually works best with summary_large_image on X and with Open Graph previews generally. Use a clear image with text that remains readable when it is reduced. Avoid placing essential information near the edges, where a platform might crop it.
The image URL must be publicly reachable without authentication. It should return an image content type, such as image/jpeg or image/png, rather than an HTML error page.
How sharing works
Do not assume every platform supports every property identically. Open Graph gives you a common baseline, while platform-specific tags can refine the result. Keep the page’s visible headline, metadata title, and structured data headline consistent so readers and crawlers receive the same message.
Exercise
A release preview shows the wrong image even though og:image is present. What should you check first?
Show answer
Confirm that the image URL is absolute, public, returns an actual image, and belongs to the intended release. Then use the platform’s debugging tool to refresh or inspect its cached metadata.