Urban Software
SEO

Open Graph for Twitter: Which Tags X Actually Reads

By MuhammadDecember 5, 20267 min read

Quick answer

Yes, Open Graph for Twitter mostly works. X reads og:title, og:description and og:image when the matching twitter: tags are missing. The one tag Open Graph cannot replace is twitter:card, which picks the card layout. So the smallest reliable set is the four required Open Graph tags, an image alt text, and twitter:card set to summary_large_image.

You paste a link into a post on X and the preview is wrong. The title is cut, the image is missing, or you get a tiny square instead of a wide card. Most people then ask the same question: do I need a whole second set of tags, or does Open Graph for Twitter do the job on its own?

The short answer is that Open Graph does most of the work. X has its own tags, but it falls back to the Open Graph ones for the title, the description and the image. There is one gap, and it is the reason so many cards look small. This guide shows the minimal tag set, explains that gap, and gives a fix list for broken previews.

What are Open Graph tags and Twitter Card tags?

Open Graph is a set of meta tags that tells social platforms what a page is about when someone shares its link. It was created by Facebook and is now read by LinkedIn, WhatsApp, Slack, Discord and most chat apps. The tags start with og: and use the property attribute.

The Open Graph protocol lists four required properties for every page: og:title, og:type, og:image and og:url. It also says that if a page sets og:image, it should set og:image:alt, a description of what is in the image.

Twitter Card tags are X's own version. They start with twitter: and use the name attribute instead of property. They control the card layout, the account handles shown with the card, and, if you want, a separate title, description and image just for X.

So you have two families of tags that describe the same thing. The trick is knowing which overlaps you can drop.

Does X read Open Graph tags?

Yes. X's card documentation maps each twitter: tag to an Open Graph equivalent. When twitter:title, twitter:description or twitter:image is missing, X uses og:title, og:description or og:image instead. You do not need to write the same title three times.

The exception is twitter:card. It decides which layout X uses, and Open Graph has no tag that means the same thing. Without it, X does not know you want the large image layout, and many pages end up with the small summary card or no card at all.

That single missing line explains most "my image is tiny on X" problems. The page has a perfectly good og:image, but nothing tells X to show it wide.

The minimal tag set that works everywhere

Here is a set that covers X, Facebook, LinkedIn and most chat apps. It is short on purpose. Every extra tag is one more thing that can drift out of date.

  • og:title: the page title as you want it on a card. Keep it short enough to read on a phone.
  • og:description: one or two plain sentences on what the reader gets.
  • og:type: website for most pages, article for blog posts.
  • og:url: the canonical address of the page, with https and no tracking parameters.
  • og:image: a full, absolute image address, never a relative path.
  • og:image:alt: a short description of the image for screen reader users.
  • twitter:card: summary_large_image for a wide card, or summary for a small square one.
  • twitter:site: optional, your brand's handle on X, so the card credits you.

Add twitter:title, twitter:description or twitter:image only when you want X to show something different from other platforms. A common reason is a shorter title written for a busy feed.

If you would rather not type these by hand, our Open Graph and Twitter Card generator writes both families of tags from one form. It shows a live preview for Facebook, LinkedIn and X, and it only outputs the tags you filled in, so you do not ship empty values.

What size should the share image be?

Use one landscape image for every platform. Meta's image guidance for link shares recommends images of at least 1200 x 630 pixels, kept close to a 1.91:1 ratio so the full image shows without cropping. The same page sets a minimum of 200 x 200 pixels and a file limit of 8 MB.

Other platforms, X included, may crop a wide image a little differently. Keep text and logos away from the borders and you will not lose anything important on either platform.

File weight matters too. A crawler that times out on a heavy image shows no image at all. Run the file through an image compressor before you upload it, and use JPG or PNG for the widest support.

Why is my link preview still wrong?

When the tags look right but the card does not, the cause is almost always one of the items below. Work down the list in order; the first ones are the most common.

  • Old cache. Platforms store a copy of your tags the first time a link is shared. Change the tags and the old card can stay for a while.
  • Same image address. Meta caches images by address, so a new image at the old address may never show. Upload the new image with a new file name.
  • Relative image path. og:image needs the full address, starting with https. A path like /images/card.jpg fails on most platforms.
  • Wrong attribute. Open Graph tags use property and Twitter tags use name. Many plugins handle this for you, but hand-written tags often mix them up.
  • Blocked crawler. If robots.txt, a firewall or a login wall blocks the platform's crawler, it never sees your tags.
  • Tags added by JavaScript. Most social crawlers do not run scripts, so tags injected after the page loads are invisible to them. Render them on the server.
  • Missing twitter:card. The image works on LinkedIn but is small or absent on X. Add the tag.

For Facebook and other Meta apps, Meta's guide also points to the Sharing Debugger, which fetches the page again and refreshes the stored preview. It notes that old shares keep their old preview, so fix the tags before a launch, not after.

How do you add these tags in WordPress or Next.js?

In WordPress, an SEO plugin usually writes Open Graph and Twitter tags for you. The common problem is two plugins doing it at once, which leaves two og:image tags on the page and lets each platform pick a different one. View the page source, search for og:image, and make sure it appears once.

If your theme, page builder and SEO plugin are all fighting over the head of the page, that is often a sign the site has grown past its setup. We wrote about that in signs you have outgrown WordPress.

In Next.js and similar frameworks, set the tags in the page metadata so they are part of the server-rendered HTML. Build them from the same data as the page title and description, so a content edit updates the card as well. Then check one page of each template, not every page.

Whatever the stack, the social tags sit next to your title tag, meta description and canonical link. The meta tag generator writes that whole block together and previews the Google result and the social card side by side, which is a quick way to spot a mismatch.

A quick check before you share a page

Run this once for each page template, such as the home page, a blog post and a product page.

  • Open the page source and confirm og:title, og:description, og:image, og:url and twitter:card each appear exactly once.
  • Open the og:image address in a private browser window. It should load without a login.
  • Check that og:url matches the canonical link on the page.
  • Paste the address into a draft post on X and on LinkedIn, and look at the preview before you publish.
  • If an old preview shows up, refresh the cache where the platform allows it, or change the image file name.

Link previews are a small part of technical SEO, but they are the part people actually see when your pages are shared. If you want someone to check them across a whole site, along with titles, canonicals and speed, that is part of our technical SEO services. Otherwise, the tag set and checklist above will fix most broken cards in an afternoon.

Frequently asked questions

You need one: twitter:card. X falls back to og:title, og:description and og:image when the matching twitter: tags are missing, so you do not need to repeat them. But Open Graph has no tag that chooses the card layout. Without twitter:card, X will not show the large image card even when your og:image is a good wide image.

Both are values of the twitter:card tag. summary shows a small square thumbnail beside the title and description. summary_large_image shows a wide image above the title, which takes more space in the feed and suits blog posts, product pages and landing pages. Use summary for pages where the image is a logo or an icon rather than a real picture.

Platforms cache link previews the first time a link is shared, and some cache images by their address. If you replaced the file but kept the same address, the old copy can keep showing. Upload the new image under a new file name, update og:image, and then share the link again to see the new card.

Always absolute. Social crawlers read your page from their own servers, and many of them do not resolve a relative path such as /images/card.jpg against your domain. Use the full address, starting with https, and make sure the image loads without a login, a cookie banner wall or a firewall rule that blocks bots.

Have a project in mind?

Get an instant ballpark estimate, or tell us about your project directly.