What is Open Graph?
Open Graph (OG) is a protocol developed by Facebook that controls how your page appears when shared on Facebook, LinkedIn, Slack, WhatsApp, iMessage, Discord, and nearly every other platform that renders link previews. The core tags are og:title, og:description, og:image, and og:url. Without them, social platforms fall back to guessing which title and image to show, usually producing ugly or low-click previews.
Why is my Open Graph image not showing up?
The most common causes are: (1) og:image is not an absolute URL (must start with https://), (2) the image is smaller than 200 × 200 pixels, (3) the image is larger than 8MB, (4) the image URL returns a non-200 status or redirect, or (5) the platform cached an old preview. For Facebook, use the official Sharing Debugger to clear the cache. For Twitter/X, use the Card Validator.
What image size should I use for Open Graph?
Use 1200 × 630 pixels for the best cross-platform results. Facebook, LinkedIn, and Slack all render this size cleanly as a large image card. The minimum is 600 × 315, but smaller images are typically rendered as small thumbnails beside the title instead of a dominant hero image.
Do I need both Open Graph and Twitter Card tags?
Not strictly. Twitter (X) will fall back to Open Graph tags if no twitter:* tags are present. However, explicit Twitter Card tags give you more control - especially the twitter:card type (summary vs. summary_large_image) and a dedicated twitter:image that can differ from your OG image if needed. For most sites, mirroring Open Graph in Twitter tags is enough.
Does Open Graph affect Google rankings?
No, OG tags are not a ranking factor. However, they indirectly support SEO. Rich social previews get more clicks, more shares, and more backlinks, which all feed Google's engagement signals. Pages with strong OG setup consistently earn more organic visibility over time than pages without.
Why is my preview showing the wrong title or image?
Social platforms aggressively cache previews. If you updated your OG tags after a URL has already been shared, the old version is likely cached on Facebook or LinkedIn's side. Use Facebook's Sharing Debugger (developers.facebook.com/tools/debug) or LinkedIn's Post Inspector (linkedin.com/post-inspector) to force a refresh. Twitter/X typically updates within minutes of the first share after an edit.