
Open Graph metadata can become a long checklist. Most teams first need a small reliable set that describes the page, points to a public image, and survives a real platform fetch.
Start with the core properties
The Open Graph protocol defines four required properties for an object:
og:title— the share title;og:type— commonlywebsitefor a normal page;og:image— an image URL;og:url— the canonical object URL.
In practice, og:description and og:site_name are also useful because they give the card context. A twitter:card value such as summary_large_image tells X which card format is intended.
An Open Graph template for a normal webpage
This example uses reserved example.com URLs. Replace every value with that page’s real content and public image before deployment; copying the block unchanged would describe the wrong site.
<meta property="og:title" content="A useful page worth sharing">
<meta property="og:description" content="A clear summary of what the page contains.">
<meta property="og:url" content="https://example.com/useful-page">
<meta property="og:image" content="https://example.com/social-image.jpg">
<meta property="og:image:alt" content="Describe the important information in the shared image.">
<meta property="og:type" content="website">
<meta property="og:site_name" content="Example">
<meta name="twitter:card" content="summary_large_image">
Put the tags in the page head and make their values page-specific. A template should map to real content fields instead of repeating one title and image across the site.
What does the og:url meta property identify?
og:url identifies the object being shared. It is not the image URL or an instruction to send every shared page to your homepage. For an ordinary article with a preferred canonical address, use that address consistently with the page’s intentional URL setup.
| Page | Appropriate example og:url | Mistake to review |
|---|---|---|
| A guide at /guides/repair-links | https://example.com/guides/repair-links | A template that sets every article to https://example.com/. |
| A product at /products/notebook | https://example.com/products/notebook | Copying another product’s URL or an unintended campaign variant. |
These are hypothetical examples. Preserve deliberate canonical decisions, language variants and platform-specific integrations. Changing og:url does not create an HTTP redirect or replace an HTML canonical link. Use the canonical guide when the intended representative URL is uncertain.
Use absolute public URLs
The page and image values should normally be complete HTTPS URLs. A crawler fetching https://example.com/page may not handle a relative image path in the way your browser does.
Open the image URL in a private window. It should load without cookies, a login, or a blocked network. The response should have an image content type.
Open Graph image examples and structured properties
Choose an image that represents the particular page: an article illustration for a guide, a clear product image for that product, or a relevant brand image where the page is genuinely about the company. Reusing one unrelated image everywhere can set the wrong expectation even when the markup parses.
The protocol supports additional image properties. If you supply width, height or type, make them match the actual file rather than an assumed template size:
<meta property="og:image" content="https://example.com/social-image.jpg">
<meta property="og:image:type" content="image/jpeg">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
<meta property="og:image:alt" content="A notebook open beside a pencil on a desk.">
This is a hypothetical 1200 × 630 JPEG example, not a universal requirement or a verified file at example.com. Replace the image URL, dimensions, type and description together. Put structured properties after the image they describe; avoid conflicting image declarations emitted by multiple plugins or templates. The Open Graph specification documents the property relationships.
Design for unpredictable crops
Different products display different aspect ratios and may crop the image. Keep the important subject away from the edges. Use large, readable type and enough contrast. Check the card at phone size, where fine detail disappears.
An often-used starting canvas is 1200 × 630 pixels, but no single size guarantees identical rendering everywhere.
Open Graph and X card tags are different fields
Open Graph tags use property="og:…"; X card tags use names such as name="twitter:card". Keep those attribute forms correct rather than changing every tag to one syntax.
Some sharing systems reuse Open Graph values, but that does not make every card format or fallback identical. The example requests a large-image X card; it does not demonstrate an actual X or Facebook preview. Confirm current platform requirements before relying on a particular crop or fallback. An illustrative Social Link Preview is useful for inspection but cannot reproduce every platform’s crawler or cache.
Deploy and verify
Generated code is only a draft until it is live. Use this sequence:
- Map the title, description, page URL and image to reliable page-specific fields.
- Check the generated HTML for missing values, correct attributes and unwanted duplicate declarations. Escape quotation marks and other special characters through the template system rather than inserting untrusted raw text.
- Deploy through the normal approval process and fetch the final public page. Confirm the tags are present in the returned head, not only after a browser interaction.
- Fetch the image independently. Confirm a successful response, the actual image content type and dimensions, and access without a login.
- Compare the public metadata with the intended page. Test platform rendering separately when its tooling is available; save the date and observed result.
The Meta Tag Checker can extract selected values from pasted HTML, but it does not prove that every duplicate is absent. Review the complete head when two systems may be producing metadata.
If an old card remains, separate a metadata problem from a cache problem. First prove the live tags are correct; then ask the platform to refresh them where that option exists. The social-preview troubleshooting guide owns the cache-diagnosis workflow; avoid repeated tag edits when the public values are already correct.
Generate the clean starting block
Use the free Open Graph Tag Generator, copy the tags, map them into your site, and test the final URL with the Social Link Preview.
Method note: generated tags are escaped locally in the browser. The tool cannot verify deployment, image reachability, or platform caches. Last reviewed 18 October 2026.



