Open Graph Tags for Better Link Previews
A practical Open Graph guide for blogs and tool pages, with field-level rules, image guidance, and debugging workflow.
When someone shares a URL in chat apps or social networks, Open Graph data often controls the preview card. If your OG tags are missing or inconsistent, your post can appear with wrong text, weak images, or unrelated metadata.
For AllSVGIcons, this matters because tutorials and tools are frequently shared in developer communities.
What Open Graph controls
At minimum, Open Graph should provide:
og:titleog:descriptionog:urlog:imageog:type
These fields define the identity and presentation of the shared URL.1
Recommended defaults for this project
For tool pages
og:type:website- Title: action-driven and task-specific
- Image: screenshot showing the tool UI
For blog posts
og:type:article- Title: exact article title
- Description: one clear summary sentence
- Image: topic-specific visual, not a site-wide generic placeholder
This split helps shared previews communicate intent instantly.
Image guidance that avoids broken previews
Use an absolute image URL and keep files lightweight but clear. A common target for social previews is 1200x630.
Practical checklist:
- Image URL returns
200and is crawlable. - No auth needed to fetch image.
- Not blocked by robots or headers.
- Content matches page topic.
Debug workflow
When previews look stale or wrong:
- Confirm OG tags in final rendered HTML.
- Verify canonical URL alignment.
- Re-scrape URL using platform debugger tools.
- Check if the image URL changed but cache did not refresh.
Use one OG image style template per tool family, but do not reuse the exact same image across all tools.
Example block
<meta property="og:type" content="website">
<meta property="og:title" content="Free SVG Optimizer - Clean and Compress SVG Code">
<meta property="og:description" content="Optimize SVGs in your browser with SVGO-powered options and copy-ready output.">
<meta property="og:url" content="https://allsvgicons.com/svg-optimizer/">
<meta property="og:image" content="https://allsvgicons.com/og/svg-optimizer.png">
Common Open Graph mistakes
- Relative image URLs instead of absolute URLs
- Copy-paste metadata that still references old pages
- Generic descriptions with no user task context
- Mismatch between
og:urland canonical URL
Each mistake reduces preview quality and weakens trust when links are shared.
Related pages
Practical FAQ
Publish checklist
- OG title and page heading align
- OG description matches core page outcome
- OG image URL is absolute and public
- OG URL matches canonical
- Image still loads after deploy
Additional source references: 2 3.