Web Design
Graph Tags in SEO: What Open Graph Tags Are and Do
Graph tags (Open Graph tags) set the title, description and image shown when a page is shared. The tags that matter, the code, and how they affect SEO.
Drafted with ODAI, Oasis Digital's AI system, and published by Talha.

The short answer
Graph tags, properly called Open Graph tags, are meta tags in a page's head that tell Facebook, LinkedIn, WhatsApp and X which title, description and image to show when the page is shared. The protocol requires four: og:title, og:type, og:image and og:url. They are not a Google ranking factor, but Google does read og:title and og:site_name when it writes your search result, and a good preview earns more clicks when the link is shared.
Paste a link into WhatsApp, LinkedIn or Facebook and a preview appears: a title, a line of description and an image. Those three things are not guessed. The page tells the platform what to show through a set of meta tags called Open Graph tags, which most people search for as "graph tags".
When they are missing or wrong, the preview shows the wrong image, the homepage title on every page, or nothing at all. This guide covers what each tag does, the code to add, how they relate to SEO, and three mistakes we found on our own site while writing it.
What are graph tags?
Graph tags are <meta> tags in the <head> of a web page, written to the Open Graph protocol. Facebook created the protocol so any web page could describe itself the same way a Facebook post does. It is now read by almost every platform that builds link previews: Facebook, LinkedIn, WhatsApp, Slack, Discord, Telegram, iMessage, and X when its own tags are missing.
Each tag has a property starting with og: and a content value. For example, og:title holds the headline you want in the preview.
The Open Graph tags that matter
The protocol makes four tags required. In practice you want six or seven:
| Tag | What it sets | Required? |
|---|---|---|
og: | The headline in the preview | Yes |
og: | What the page is: website, article, profile | Yes |
og: | The preview image, as a full URL | Yes |
og: | The page's canonical URL | Yes |
og: | The line of text under the title | Recommended |
og: | Your brand name, shown above the title on some platforms | Recommended |
og: / og: | The image size in pixels, so the preview renders on the first share | Recommended |
og: | A description of the image for screen readers | Recommended |
How to add Open Graph tags
On a plain HTML page, they go in the <head>:
<meta property="og:title" content="How Much Does a Website Cost in Dubai?">
<meta property="og:description" content="What a business website costs to build in 2026, in AED.">
<meta property="og:type" content="article">
<meta property="og:url" content="https://oasis-digital.ae/blog/website-cost-dubai">
<meta property="og:site_name" content="Oasis Digital">
<meta property="og:image" content="https://oasis-digital.ae/images/og-image-v2.jpg">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
<meta property="og:image:alt" content="Oasis Digital">
<meta name="twitter:card" content="summary_large_image">
Two details catch people out. The image must be an absolute URL starting with https://, not a relative path. And the tags must be in the HTML the server sends: crawlers that build previews generally do not run JavaScript, so tags added by a script after the page loads are often never seen.
On WordPress, an SEO plugin such as Yoast or Rank Math writes these tags for you; check its Social settings for each page. In Next.js, use the openGraph field in a page's metadata, which renders the tags on the server:
export const metadata = {
openGraph: {
title: "How Much Does a Website Cost in Dubai?",
description: "What a business website costs to build in 2026, in AED.",
url: "https://oasis-digital.ae/blog/website-cost-dubai",
siteName: "Oasis Digital",
type: "article",
images: [{ url: "/images/og-image-v2.jpg", width: 1200, height: 630 }],
},
};
Do graph tags affect SEO?
Not as a ranking factor. Google does not rank a page higher for having Open Graph tags. But they are not invisible to Google either, and the effect on traffic is real:
- Google reads
og:title. Google's title link documentation lists it as one of the sources it uses to write the blue headline of your search result, alongside the<title>element and the main heading. - Google reads
og:site_name. Its site name documentation lists it among the signals for the brand name shown above your result.WebSitestructured data carries more weight. - Shares become visits. A link shared in a WhatsApp group or on LinkedIn with a clear title and a real image gets clicked; a bare URL mostly does not. That is traffic search does not bring you.
So keep og:title consistent with your <title>. If they say different things, you are giving Google two competing headlines to choose from.
Title vs og:title vs twitter:title
Three tags, three jobs. This is the difference:
| Tag | Where it shows | Who reads it |
|---|---|---|
<title> | Browser tab, and Google's main source for the search result headline | Browsers, Google, Bing |
og: | Link previews on Facebook, LinkedIn, WhatsApp and most apps | Social platforms; Google as a secondary source |
twitter: | Link previews on X | X only |
The <title> usually carries your brand at the end ("... | Oasis Digital") and stays under about 60 characters. The og:title can drop the brand, because og:site_name already shows it. You rarely need twitter:title at all: X reads its own tags first and falls back to the og: ones for the title, description and image. The one X tag worth adding is twitter:card set to summary_large_image, which has no Open Graph equivalent and gives you the large image.
The right image size for og:image
Facebook's image guidance is the one most platforms follow:
- at least 1200 x 630 pixels for the large preview on high-resolution screens
- an aspect ratio close to 1.91:1, so nothing is cropped
- no smaller than 200 x 200 pixels, and under 8 MB
- declare
og:image:widthandog:image:height, so the image can render on the very first share instead of after the crawler has fetched it
A JPEG or PNG is the safe choice. Keep text on the image large and away from the edges, because WhatsApp and some apps crop previews to a square.
Three Open Graph mistakes we found on our own site
While writing this guide, we checked the tags on oasis-digital.ae itself and found three problems:
- Every blog post had the homepage's X preview. The site-wide layout set
twitter:title,twitter:descriptionandtwitter:imageto the homepage's values, and every page inherited them. Each post had correctog:tags, but X reads its own tags first, so it showed the homepage. We removed them from the layout and kept onlytwitter:card. Our framework, Next.js, now fills each page's X tags from that page's own Open Graph tags. - The declared image size was wrong. Posts said their image was 1200x630, but the file served was a 1600-pixel-wide WebP. We now serve an exact 1200x630 JPEG for sharing, so the declared size and the real one match.
- One page had the homepage's og:url. Our author page did not set its own Open Graph tags, so it inherited the homepage URL. Shares of it would have pointed to the homepage.
None of these showed up when looking at the site in a browser. They only showed up when reading the HTML. That is the point of checking.
How to fix "Open Graph tags incomplete" and wrong previews
When a preview is missing, wrong or flagged as incomplete, work through this list:
- Check the four required tags are there. View the page source (not the inspector) and search for
og:. A missingog:imageorog:urlis the usual cause of "incomplete" warnings. - Check they are in the server's HTML. If they only appear in the inspector, a script is adding them and crawlers will not see them.
- Check the image URL opens. Paste it into a private browser window. A relative path, a login wall or a blocked folder breaks the preview.
- Clear the platform's cache. Platforms cache a page's preview the first time it is shared. Run the URL through Facebook's Sharing Debugger or LinkedIn's Post Inspector to fetch it again.
- Give a changed image a new URL. Facebook caches by image URL, so replacing a file at the same address can keep the old picture showing.
Common questions
Are graph tags and Open Graph tags the same thing?
Yes. "Graph tags" is the common shorthand for Open Graph tags, the og: meta tags defined by the Open Graph protocol.
Do I need Open Graph tags if I have a meta description?
Yes. The meta description is for search results. Social platforms look for og:description first, and if it is missing they may fall back to the meta description or pull a random line from the page.
Do Open Graph tags help Google rankings?
No, not directly. Google uses og:title and og:site_name as inputs for how your result is displayed, and good previews bring clicks from shares, but the tags themselves are not a ranking signal.
Is Open Graph the same as structured data?
No. Structured data (schema.org, usually JSON-LD) describes your content to search engines and powers rich results. Open Graph describes your page to social platforms for previews. Most sites need both.
Open Graph tags are part of the technical groundwork we set up on every website we build and check in every SEO audit. For the other small details that change how your site appears in Google, see whether a favicon affects SEO and how page speed affects rankings.