Open Graph Tags: Make Your Links Look Great When Shared

Open Graph Tags: Make Your Links Look Great When Shared

Quick answer: Open Graph tags are meta tags in your page head that tell Facebook, LinkedIn, WhatsApp, Slack and others which title, description and image to show when someone shares your link. In WordPress, turn on Open Graph and Twitter cards in your SEO plugin, set a branded 1200 x 630 px default image, write custom social titles for key pages, then refresh old previews with the Facebook Sharing Debugger and LinkedIn Post Inspector.

Key takeaways

  • Without Open Graph tags, platforms guess, and often pick the wrong image or text.
  • The recommended og:image size is 1200 x 630 pixels.
  • X (Twitter) reads Open Graph tags but also has its own twitter:card tag.
  • Platforms cache previews, so you must refresh them after changing tags.
  • Only one plugin should output social tags, or you get conflicting previews.
Open Graph tags for social sharing showing how og:image and Twitter cards control link previews
Open Graph tags decide how your link preview looks

What are Open Graph tags?

Open Graph is a protocol Facebook created in 2010 so any web page could become a rich object when shared. It is now used by almost every platform that builds link previews, including LinkedIn, WhatsApp, Messenger, iMessage, Slack, Discord and Teams. The tags sit in the page head and look like this:

<meta property="og:title" content="Open Graph Tags: Make Your Links Look Great" />
<meta property="og:description" content="Control how your pages look when shared." />
<meta property="og:image" content="https://www.example.com.au/wp-content/uploads/og-image.jpg" />
<meta property="og:url" content="https://www.example.com.au/open-graph-tags/" />
<meta property="og:type" content="article" />
<meta name="twitter:card" content="summary_large_image" />

Why Open Graph tags matter

Social shares are free distribution, but a preview with a broken image or a cut off headline gets scrolled past. A clear image and headline can noticeably lift click through from every share, every post in a Facebook group and every link dropped into a team chat. Open Graph data is also one more consistent signal about what your page covers, which supports AI search visibility.

Comparison of a broken social link preview without Open Graph tags and an optimised preview with Open Graph
The same link, before and after Open Graph tags

The tags every page needs

Reference table of Open Graph tags og:title, og:description, og:image, og:url, og:type and twitter:card with tips
Six tags cover almost every social platform
  • og:title: can differ from your SEO title. Write it for people scrolling a feed.
  • og:description: one or two sentences that make someone want to open the link.
  • og:image: 1200 x 630 px (a 1.91:1 ratio), JPG or PNG, ideally under 1 MB for speed. Keep text and logos in the middle so square crops still work.
  • og:url: the canonical URL, so shares of tracked links still count toward one page. See canonical tags explained.
  • og:type: "article" for blog posts, "website" for the home page and service pages.
  • twitter:card: set to summary_large_image for a full width image on X.

How to set up Open Graph in WordPress

Four steps to set up Open Graph in WordPress: enable social meta, set a default image, customise key pages and debug previews
Most of the work is done once in your SEO plugin

Turn on social meta in your SEO plugin

SmartCrawl has OpenGraph and Twitter Cards under its Social settings. Yoast has them under Settings then Site features. Rank Math covers them under Titles and Meta. Enable both, add your Facebook page URL and X username, and save.

Set a default sharing image

Create a branded 1200 x 630 image with your logo and a short tagline, and set it as the default. Any page without its own featured image will use it, so nothing is ever shared blank.

Customise your most shared pages

Open your home page, top services and best articles. In the SEO plugin panel, find the social tab and write a social title and description, and choose a specific image. On blog posts the featured image is usually used automatically, which is why every post on this site has a 1200 x 675 featured graphic.

Refresh previews after changes

Platforms cache link previews for days or weeks. After changing tags, paste the URL into the Facebook Sharing Debugger and press Scrape Again, and use LinkedIn Post Inspector to refresh LinkedIn. WhatsApp and iMessage refresh on their own over time.

Common Open Graph problems and fixes

  • Wrong image shows: two plugins or the theme are outputting og:image. Disable the extra output.
  • No image at all: the image is too small (under 200 x 200 px), blocked by a security plugin, or served over HTTP.
  • Old title still showing: the platform cache needs refreshing in its debugger tool.
  • Preview shows cookie banner text: og:description is missing, so the platform grabbed the first text it found.
  • Image cropped badly: important content sits too close to the edges.

Make sharing easy too

Good previews help most when people actually share. Add simple share buttons to blog posts, link your social profiles in the footer, and post new articles to your own channels. The social media website integration guide covers feeds, buttons and pixels, and the Meta Pixel and Conversions API guide covers tracking.

Need your social previews fixed?

My WordPress Open Graph and Social Sharing service sets up Open Graph and Twitter card tags sitewide, designs a branded default share image, customises your top pages, removes conflicting tags and refreshes the cache on Facebook and LinkedIn for a fixed A$149. It is delivered online for businesses in Australia, New Zealand, the United States and Canada.

Related services: featured images for 10 posts, blog engagement features and WordPress SEO plugin setup.

Frequently asked questions

What size should an Open Graph image be?

Use 1200 x 630 pixels, a 1.91:1 ratio. Keep important text and logos in the centre so the image still works when a platform crops it square.

Why is Facebook showing the wrong image for my link?

Facebook may have cached an old version, or your site may be outputting more than one og:image tag. Fix the duplicate tag, then use the Facebook Sharing Debugger and press Scrape Again.

Do Open Graph tags help SEO?

They are not a direct Google ranking factor, but they improve click through from social shares, which brings more visitors, more engagement and more chances of earning links.

Does X (Twitter) use Open Graph tags?

Yes. X falls back to Open Graph tags, but it also reads its own twitter:card tag. Set twitter:card to summary_large_image for a large preview image.

Do I need a separate plugin for Open Graph in WordPress?

Usually not. SmartCrawl, Yoast and Rank Math all output Open Graph and Twitter card tags. Running a second social plugin often causes duplicate tags.

Back to blog
Get in touch

Have a project in mind?

Tell me about your idea. I'll get back to you with honest advice and a clear quote.

  • Talk directly to the developer
  • Clear quotes before any work starts
  • Sydney CBD based
Contact us