Autopilotвід Internet Solutions

Open Graph Tags: Controlling How Shared Posts Look

30 вересня 2026 р.Час читання: 9 хвСоцмережі
Open Graph Tags: Controlling How Shared Posts Look

Short answer: Open Graph tags are meta tags in a page’s HTML head that tell social networks and messaging apps what title, description and image to show when someone shares the link. For a blog post, the essentials are og:title, og:description, og:image, og:url and og:type, plus the Twitter card tags that some platforms read instead. Most WordPress SEO plugins generate them from the post title, excerpt and featured image. The most common problems are a missing or badly cropped image, duplicate tags from two plugins and old previews cached by the platforms, which their debugging tools can refresh.

When a blog post is shared on a social network or pasted into a chat, it usually turns into a card: an image, a headline and a line of text. That card is often the first thing people see of your article, long before they read a word of it.

Whether the card looks sharp or broken is decided by a handful of tags in your page’s HTML. This guide explains what they are, how to set them well on a blog and how to troubleshoot the problems that appear most often.

What Open Graph tags are

The Open Graph protocol was introduced by Facebook to let any web page describe itself as a rich object when shared. It is documented at ogp.me and is now read by most major social networks and many messaging apps.

The tags are ordinary meta elements with a property attribute, placed in the head of the page:

<meta property="og:title" content="Canonical Tags Explained Without the Jargon">
<meta property="og:description" content="What a canonical tag does and when to use one.">
<meta property="og:image" content="https://example.com/images/canonical-cover.png">
<meta property="og:url" content="https://example.com/canonical-tags-explained/">
<meta property="og:type" content="article">

When someone shares the URL, the platform fetches the page, reads these tags and builds the preview card from them. If the tags are missing, the platform guesses from the page content, which often produces the wrong image or a random sentence as the description.

The tags a blog post needs

A small set covers almost every case:

Tag What it controls Typical source on a blog
og:title Headline on the card Post title or a separate social title
og:description Line of text under the headline Excerpt or meta description
og:image The preview image Featured image
og:url The canonical address of the post The post’s permalink
og:type Kind of content “article” for posts, “website” for the homepage
og:site_name Site name shown on some cards Your blog or business name
twitter:card Card layout on X and some other platforms Usually “summary_large_image”

Article pages can also carry tags such as article:published_time and article:author. They are not essential for the preview, but some platforms and tools read them.

The Twitter card tags deserve a note. X reads its own twitter: tags first and falls back to Open Graph for most values, so a site with good Open Graph tags plus a twitter:card tag is usually covered. Most SEO plugins output both.

Writing the title and description for sharing

The social title and description do not have to match your search title and meta description, although they often can. The context is different: in search, people are looking for an answer; on social, they are scrolling past things they did not ask for.

Most SEO plugins let you set a separate social title and description per post. Use those fields when the search version does not work well on social; otherwise leave the defaults.

Getting the preview image right

The image does most of the work on a card, and it causes most of the problems.

  1. Use a large landscape image. 1200 × 630 pixels is the widely used recommendation for large link previews and works across most platforms. Smaller images may be shown as a small thumbnail instead of a large card.
  2. Keep important content in the centre. Platforms crop differently; some trim the edges or show a square version. Text or faces near the edges may be cut off.
  3. Avoid tiny text. Cards are often viewed on phones at a fraction of the original size. A headline on the image should be large and short, or absent.
  4. Use an absolute URL over https. The og:image value must be a full address that the platform can fetch publicly, not a relative path or an image behind a login.
  5. Keep file size reasonable. Very large files may time out when the platform fetches them. A well-compressed PNG or JPEG usually works best.
  6. Give every post its own image. A single default image on every card makes all your shares look the same in a feed.

Avoid plain white backgrounds for preview images: on light-themed feeds the card edges disappear and the image looks unfinished. A solid brand colour or a dark background stands out better.

Think about the preview image as part of a series. Readers who follow you see many of your cards over time, so a consistent layout, colour and style helps them recognise your posts at a glance, while a different title or key idea on each image keeps them distinct. Designing a simple template once and reusing it for every post is usually more effective than creating each image from scratch.

Setting Open Graph tags in WordPress

WordPress core does not output Open Graph tags by itself, but most SEO plugins do, and some themes include their own. The typical setup:

  1. Install one SEO plugin and enable its social or Open Graph features.
  2. Set a default image in the plugin, used when a post has no featured image.
  3. Give every post a featured image of a suitable size; the plugin uses it for og:image.
  4. Write a good excerpt or meta description; the plugin uses it for og:description.
  5. Override the social title, description or image per post only when needed.

The most important rule is to let only one component output the tags. When a theme, an SEO plugin and a social sharing plugin all add Open Graph tags, the page ends up with two or three og:image tags, and platforms may pick the wrong one.

Troubleshooting broken previews

When a card looks wrong, the cause is usually one of these:

Platforms provide tools to check and refresh previews. Facebook’s Sharing Debugger shows what its crawler sees and lets you scrape the page again, and LinkedIn offers a similar Post Inspector. Run the URL through them after fixing tags, then share again.

Messaging apps behave similarly. They fetch the page when a link is first pasted, build a preview and may keep it for a while. If a link was pasted before you fixed the tags, the old preview can persist in that conversation even after the platform’s cache is refreshed.

Check before you share

A thirty-second routine before sharing a new post prevents most embarrassment:

  1. Paste the URL into a sharing debugger and look at the card it builds.
  2. Confirm the image is the right one, sharp and not badly cropped.
  3. Read the title and description as a stranger would.
  4. Only then share it, because the first share is often what gets cached.

If you share automatically, run this check once on a few posts after any theme or plugin change, since that is when tags usually break.

How AI Blog Autopilot shares posts

AI Blog Autopilot publishes each article to your WordPress blog and then shares it to your connected social networks, with its own text, length and timing for each network. Where a network shows a link preview, that preview is built from your blog’s Open Graph tags, so a sound setup of the kind described here makes every automatic share look as intended. You can see the networks and how sharing works on the AI Blog Autopilot home page.

Related reading

The bottom line

Open Graph tags decide how your posts look everywhere they are shared. Let one SEO plugin output them, give every post a large, well-cropped featured image and a clear excerpt, and write a social title when the search title is not enough. When a preview looks wrong, check the page source for missing or duplicate tags and refresh the platform’s cache with its debugging tool before sharing again.

FAQ

What are Open Graph tags?

Open Graph tags are meta tags in a web page’s HTML head that tell social networks and messaging apps which title, description, image and URL to use when the page is shared. They were introduced by Facebook and are now read by most major platforms.

What size should an Open Graph image be?

1200 by 630 pixels is the widely used recommendation for large link previews and works on most platforms. Keep important content near the centre, because some platforms crop the edges or show a square version.

Why is the wrong image showing when I share my post?

The page may have no og:image tag, several conflicting og:image tags from different plugins, or the platform may still be showing a cached preview. Check the page source, remove duplicate sources of tags, then refresh the preview with the platform’s debugging tool.

Do I need Twitter card tags as well as Open Graph?

It is best to have at least the twitter:card tag. X reads its own tags first and falls back to Open Graph for most values, so Open Graph plus twitter:card usually covers it. Most SEO plugins output both automatically.

Do Open Graph tags help SEO?

They do not directly affect search rankings. They control how your posts look when shared, which influences whether people click and share them further. That can bring more visitors and attention, but it is not a ranking signal in itself.

#Featured images#Open Graph#Social media automation
Ваш блог теж міг би писати себе сам.Ваш блог пише себе сам. Соцмережі публікуються самі.
Почати безкоштовно

Ще з блогу

Усі статті →
Internet Solutions

Інші продукти нашої команди

Створено Internet Solutions. Спробуйте й інші наші продукти — кожен заощаджує час по-своєму.

internet-solutions.net ↗
01Автопостинг у соцмережі
PostRSS

Нові записи з вашого RSS-фіду автоматично публікуються у Facebook, X, LinkedIn, Telegram та ще 60+ мережах.

Безкоштовний тариф · з 2014Перейти →
02AI-чат для сайтів
Talkmio

Ваш сайт відповідає відвідувачам 24/7 на основі вашого контенту та їхньою мовою.

Безкоштовний тариф · без карткиПерейти →
03AI-асистент
Ask Mio

Чат, код, дизайн, тексти та дослідження. Mio добирає найкращу модель для кожного завдання.

Безкоштовний тарифПерейти →
04Перевірка здоров’я сайту
Site AI Audit

SEO, швидкість, SSL, безпека та налаштування пошти в одному звіті — за порядком, що виправляти першим.

Перший аудит безкоштовноПерейти →
05Глибокий SEO-аудит
Site SEO AI Audit

Повне SEO-сканування за 7 напрямами, зокрема видимість в AI-пошуку, з виправленнями за силою впливу.

Перший аудит безкоштовноПерейти →
06RSS і товарні фіди
RSS Feed Creator

Створюйте RSS з будь-якої вебсторінки, а також товарні фіди для Google і Meta, що оновлюються самі.

Безкоштовний тарифПерейти →
07Розробка сайтів і SEO
Internet Solutions

Сайти, інтернет-магазини та індивідуальні системи — проєктує, створює й супроводжує наша команда.

З 2011Перейти →
AI Blog Autopilot
Огляд конфіденційності

Цей сайт використовує cookie, щоб ми могли забезпечити вам найкращий користувацький досвід. Інформація cookie зберігається у вашому браузері й виконує такі функції, як розпізнавання вас під час повернення на сайт, а також допомагає нашій команді зрозуміти, які розділи сайту вам найцікавіші та найкорисніші.