Facebook Metadata (2025): Open Graph that performs
Master facebook metadata for flawless link previews: OG tags, image rules, locales, video cards, cache refresh with Sharing Debugger, and dynamic image generation strategies.
OG Coverage
Key tags present
Image Quality
1200×630, ≤ ~5 MB
Cache Control
Debugger & purge
What is Facebook metadata?
Facebook metadata is a set of Open Graph tags that define how your link appears when shared: title, description, image, type, URL, site name, and locale. Correct tags improve CTR and brand consistency.
200, and keep images fast to fetch. Avoid chained redirects and query-string randomness for OG images.Image requirements & CDN tips
Size & format
Reliable previews
- 1200×630 (ratio ~1.91:1). PNG or JPEG, progressive JPEG is fine.
- Keep under ~5 MB; avoid animated formats for link previews.
- Use absolute URLs; ensure
Cache-Controlreasonable.
CDN & cache
Versioning
- Version image filenames (
slug-2025-09-23.jpg) to force refresh. - Avoid redirects to signed URLs where possible.
- Return
Content-Type: image/jpeg(or proper type).
Sharing Debugger & cache refresh
- Deploy updated tags/images.
- Open the Facebook Sharing Debugger, paste your URL, click Debug.
- If preview is stale, click Scrape Again.
- Purge CDN or wait for propagation if still cached.
Video, galleries & carousels
For video pages, use og:video with secure (https) MP4 or player URLs. Not all surfaces render video previews; always provide a static og:image fallback.
<meta property="og:video" content="https://cdn.example.com/video/clip.mp4" /> <meta property="og:video:type" content="video/mp4" /> <meta property="og:video:width" content="1280" /> <meta property="og:video:height" content="720" />
Dynamic OG images at the edge
Strategy
Templates + caching
Checklist
Production safety
- TTFB < 300ms for OG endpoints.
- Consistent font licensing and rendering.
- Fallback to a static image on errors.
Locales & multi-language
Set og:locale (e.g., en_US) and maintain per-language titles/descriptions. Use canonical links and hreflang for search engines; OG uses the single selected locale for the preview.
Performance & validation
Validation
Quick checks
# Inspect head on a deployed URL curl -s https://example.com/post | grep -Ei 'og:|twitter:|canonical' | sed -e 's/^/• /'
Pre-publish checklist
Ship with confidence
- Unique title/description per URL
- Absolute image URL, 1200×630, 200 OK
- No conflicting meta duplicates
- CDN cache set; versioned filenames
Image privacy for social previews
OG images may originate from cameras or design exports and can carry hidden EXIF/GPS. Before committing them to your repo/CDN, scrub metadata to avoid leaking locations or device details.
FAQ
Ship perfect Facebook previews — protect privacy
Nail your Open Graph setup (tags, images, cache). For images, scrub hidden EXIF/GPS before pushing to your CDN.