Open Graph Tags: What They Are and How to Add Them
What each Open Graph and X card tag does, the image sizes that display well, where to set the tags on common platforms and how to test and refresh a shared preview.
- Any website
- Visits within reach
- Each problem joined to its fix

Open Graph tags are hidden meta tags in a page's head that tell apps such as Facebook, LinkedIn and WhatsApp which title, description and image to show when the page is shared. You add them through your SEO plugin's Social tab or your website builder's page settings, then test each important page in a sharing debugger.
To see your own website the way Google does, try our AI website SEO tools, part of our AI SEO Tools.
- The Open Graph protocol names 4 properties every page needs: og:title, og:type, og:image and og:url (The Open Graph protocol).
- The protocol describes og:description as a 1 to 2 sentence description of the page, and lists og:image:alt as a property pages with an image should include (The Open Graph protocol).
- Google lists 9 sources it may use for a page's title link in results, and content in og:title meta tags is one of them (Google Search Central on title links).
Add AI website SEO tools to your routine and see which pages are missing Open Graph tags
What are Open Graph tags?
Open Graph tags are meta tags, each starting with "og:", that let a page describe itself to any app that displays links, without changing how the page looks.
A shared link is a small advert you did not design, unless you tell each app what to put in it. When someone pastes your page into Facebook, LinkedIn, WhatsApp or Slack, the app looks for a handful of hidden lines and builds the preview from them: a picture, a headline and a short description. Without those lines, the app guesses, and the guess is often a cropped logo, a cookie banner or a blank grey box. A good preview earns clicks from people who already trust the person sharing, so it is some of the most valuable attention a business website gets. The sections below cover what each tag does, how X card tags fit in, which images display well, where to set the tags and how to test and refresh a preview.
The Open Graph protocol, published at ogp.me, defines the tags. They sit in the head of the page, out of sight, and each one uses a property attribute starting with "og:". Facebook, LinkedIn, WhatsApp, Slack, Microsoft Teams, iMessage and many other apps read them, which is why one set of tags serves almost everywhere your link might travel. The tags do not change how the page looks to a visitor. They only control the card that appears when the address is shared.
Open Graph tags are built for sharing rather than for ranking, so adding them will not move a page up the results by itself. Google does read some of them: it lists og:title among the sources it may use for a page's title link, and the Google Search Central guide to site names says its system also considers og:site_name, although WebSite structured data matters most. Their main value, though, is in clicks from outside search, such as a referral from a customer's LinkedIn post or a link sent round a family WhatsApp group. Those visitors often arrive ready to act, because someone they know put the link in front of them. Many SEO checks include sharing tags for exactly this reason, since a well-labelled page is easier to recommend.
Which Open Graph tags does every page need?
Every page needs og:title, og:type, og:image and og:url, and in practice og:description too, because most apps show it when it is present.
The Open Graph protocol names those four tags as required on every page. A few optional tags make the card more reliable, such as og:site_name for the business name, og:image:alt to describe the picture, and og:image:width and og:image:height, which give an app the size of the image in pixels without it having to measure the file. The og:type value "website" suits ordinary pages, while "article" suits blog posts and can carry extra details such as the published time. The table shows each core tag with a short example for a bakery in Lyon. Most SEO plugins and builders write these tags for you, so the job is usually filling in the right fields rather than writing code.
| Tag | What it controls | Example value |
|---|---|---|
| og:title | The headline on the card | Sourdough Workshops in Lyon |
| og:description | One or two lines under the headline | Learn to bake sourdough at home in a three-hour class. |
| og:image | The picture, as a full https address | https://example.com/images/workshop-1200x630.jpg |
| og:url | The page's main address, used to group shares | https://example.com/workshops/sourdough |
| og:type | The kind of content | website for pages, article for blog posts |
| og:site_name | The business name shown on some cards | Boulangerie Martin |
Each tag deserves a few seconds of thought. The og:title can match the page's search title, though it often reads better without the business name on the end, since the card already shows the domain. The og:description should say why someone should click, in a sentence or two, rather than repeat the title. The og:url is the page's canonical address, which the protocol treats as the page's permanent identity, so use https and the correct www choice. The og:image should be a full address starting with https, not a path such as "/images/photo.jpg", which many apps cannot follow.
How do X card tags fit with Open Graph tags?
X card tags start with "twitter:" and choose the card layout; for title, description and image, X can use your Open Graph tags when its own are missing.
X, formerly Twitter, uses its own set of tags called cards. The most important is twitter:card, which chooses the layout: "summary" shows a small square image beside the text, while "summary_large_image" shows a wide picture above it. You can also set twitter:title, twitter:description, twitter:image and twitter:image:alt. When the twitter: versions of the title, description or image are missing, X generally uses the matching Open Graph tags instead. So a sensible setup is a full set of Open Graph tags plus a twitter:card line, and separate X tags only where you want different wording.
The large image card suits a wide picture, so an image made in the usual wide sharing shape displays with only a slight trim at the edges. The twitter:image:alt tag describes the picture for people using screen readers, which is good practice and costs nothing to add. A twitter:site tag can name the business's X account so it appears with the card. The most reliable test is to start a new post, paste the link and look at the preview before deleting the draft. If the card is wrong there, check the twitter:card line first, as it is the tag most often forgotten.
Which sharing image displays well?
A sharing image displays well when it is wide, about 1200 by 630 pixels, compressed, publicly reachable at a full https address and without small text.
The image does most of the work on a shared card, so choose it with care. A wide picture of 1200 by 630 pixels, a ratio of about 1.91 to 1, is the common choice because the large cards on Facebook, LinkedIn and X are all wide, so one image covers them and most messaging apps. Keep the file size modest, a well-compressed JPEG or PNG rather than a raw camera file, because some apps skip images that take too long to fetch. Save it at a stable address that will not change, since apps remember images by their address. Add og:image:width and og:image:height so apps know the size before they download the picture.
Composition matters as much as size. Keep the main subject in the middle, because square and slightly narrower crops trim the edges. Avoid small text on the image, which turns into a smudge on a phone, and never rely on the image alone to carry the message. A real photograph of your work, your premises or your team usually outperforms a logo on a coloured background. A physiotherapy clinic in Edinburgh might use a photo of a session in progress for its treatment pages and a photo of the reception for its contact page, with a site-wide default image as the safety net for every other page.
Where do you set Open Graph tags on your platform?
On WordPress, set Open Graph tags in your SEO plugin's Social tab; on Wix, Squarespace and Shopify, set them in each page's social or SEO settings.
On WordPress, the major SEO plugins handle Open Graph tags for you. Yoast SEO, Rank Math, All in One SEO and SEOPress each add a Social tab to the page editor, where you can set a sharing title, description and image for that page, and each has a site-wide default image in its settings. If you leave the social fields empty, the plugin builds the tags from the SEO title, the meta description and the featured image. Running two plugins that both print Open Graph tags gives apps conflicting instructions, so let one plugin own them. Some themes and social sharing plugins add their own tags too, which is worth checking in the page source.
Website builders handle the tags in their own panels. Wix lets you set the sharing image, title and description in a page's settings and set defaults in its SEO settings. Squarespace lets you set a site-wide social sharing image and a social image for each page. Shopify lets you set a default social sharing image for the store, and its themes usually use the featured image of products, collections and blog posts. Menu names change from time to time on all three platforms, so if a label differs, search their help centre for "social share image".
How do you test Open Graph tags?
Test Open Graph tags with the Facebook Sharing Debugger and LinkedIn's Post Inspector, which fetch the page as each app does and show the card it would build.
Never assume a card looks right because the tags are present. The Facebook Sharing Debugger, at developers.facebook.com/tools/debug, fetches your page as Facebook's crawler does and shows the card it would build, the tags it found and any warnings. LinkedIn's Post Inspector, at linkedin.com/post-inspector, does the same for LinkedIn and shows the title, description and image it will use. Both tools reveal problems you cannot see in the source, such as an image the crawler could not download or a redirect that sends the crawler to a different page. Test your home page, a main service or product page and a recent blog post, since each usually takes its tags from a different template.
Read the warnings with care. A missing og:image warning usually means the tag is absent or the address is relative. An image that appears tiny means the picture is too small for a large card. A title or image from a different page often means og:url points to the wrong address, such as every page pointing to the home page. If the debugger shows a page from a staging address, the live site was copied without updating its settings, so fix the cause and use the debugger again to fetch a fresh copy.
How do you refresh a preview that will not update?
Refresh a stuck preview by fixing the tags, giving a changed image a new filename, clearing your cache, then asking each app to read the page again.
Apps save a copy of each card the first time a link is shared and reuse it, so a fix on your page does not show at once. In the Facebook Sharing Debugger, paste the address and press "Scrape Again" to make Facebook read the page afresh. Inspecting the address in LinkedIn's Post Inspector prompts LinkedIn to read the page again too. Apps also tend to remember images by their own address, so replacing a picture with a new file under the same name may still show the old one. Upload the new image under a new filename, point og:image at it and scrape again.
Some limits are worth knowing. A refresh changes the card for new shares, but posts already published may keep the old preview. WhatsApp and some other messaging apps have no public tool to clear their copy, so new shares there can take a while to show the update. Clear your own website's cache and any content delivery network first, or the apps will fetch the old tags again. Keep old image files in place for a time, because earlier posts may still point to them.
Which Open Graph mistakes are most common?
The most common Open Graph mistakes are one image for every page, relative image addresses, duplicate tag sets, blocked images and stale cards nobody refreshed.
A single image and description for the whole website means every page shares as the same logo and the same line about the business. A relative image address looks correct in the source but produces an empty card. Two sets of tags, often from an SEO plugin and a theme, leave each app to pick one, not always the one you wanted. An image blocked from crawlers, by robots.txt or by a login on a members area, never appears. A stale card shows the old headline months after the page improved, because nobody asked the apps to fetch it again.
Two quieter mistakes are worth checking. Some websites set og:url to the home page on every page, which makes apps treat all shares as shares of the home page. Others leave the og:title as a bare page name such as "Services", which says nothing in a busy feed. A roofing firm in Denver would do far better with "Roof Repairs in Denver: Inspections Within the Week", which names a clear service, a place and a reason to click. Check the blog in particular, since posts published by different people often miss a featured image, and test five or six pages each quarter to catch the rest.
How do sharing tags affect what an SEO check reports?
Sharing tags have their own area in most good website checks; in ours they sit under "Sharing and rich results", one of six areas behind the score.
Our AI website SEO tools read up to 12 pages of any website and report sharing problems in that area. Each page is listed with its own problems, and each fix comes with steps and the code to paste. On WordPress, the AI website SEO plugin writes titles and descriptions into your SEO plugin's fields, and prints the title, description and Open Graph tags itself when no SEO plugin is installed. If you want to understand how this area weighs against indexing, listings and backlinks, read what an SEO score measures and why points are not the same as visits. The tools include a monthly re-check with an email of what changed, and they sit with the wider AI SEO tools for business websites.
Questions business owners ask
Do Open Graph tags help my Google rankings?
Not directly, because they are built to control shared previews rather than rankings. Google may use og:title when it chooses a title link and considers og:site_name for the site name, but the main gain is clicks from shares. Treat the tags as part of presenting the page well rather than as a search trick.
Do I need separate X card tags?
Usually you need only one extra line, the twitter:card tag that chooses the layout. X can use your Open Graph title, description and image when its own versions are missing, so add twitter:title or twitter:description only when you want different wording on X. Check by pasting the link into a draft post and looking at the preview.
Why does WhatsApp show no image for my link?
The usual causes are a missing or relative og:image, a very large image file, or an image the app cannot fetch because of a block or a login. Check the page in the Facebook Sharing Debugger first, since it shows errors in the same tags clearly. Compress the image, make sure its address starts with https, and allow time for WhatsApp's saved copy to update.
How do I add Open Graph tags without a plugin?
Add the meta tags by hand in the head section of each page, using a property attribute such as og:title and a content attribute holding the value. On WordPress that means editing the theme or a child theme, which is easy to break, so an SEO plugin is usually the safer route. Test every page you change in a sharing debugger.
Should og:title be the same as the SEO title?
It can be, and a matching title is a sensible default. Many owners drop the business name from og:title because the card already shows the domain, and some write a slightly warmer headline for social feeds. Keep both accurate to the page, since Google may also read og:title.
Give your next shared link a proper card
Give your five most shared pages a proper card this week: test them, fix the missing tags, add a wide image to each and scrape them again.
Pick the five pages people share most often, usually the home page, the main service or product pages and the most popular blog post. Check each one in the Facebook Sharing Debugger and LinkedIn's Post Inspector, and write down which tags are missing or wrong. Create a 1200 by 630 pixel image for each page, set the sharing title and description in your platform or SEO plugin, and add a twitter:card line if it is missing. Scrape each page again so the apps forget the old card, then share one link yourself to see the result. Once those five look right, set a sensible default image for every other page, so nothing on your website shares as a blank box.
Your score out of 100, the visits within reach, every page read the way Google does and the tool that fixes each problem. Works on any website.
Analyse your website with AI Website SEO Tools →