Social Media Optimization

How to Set Up OGP Tags for Social Media

OGP tags control how your content appears when shared on social media. Learn setup methods, recommended image sizes, and common mistakes to avoid.

6 min read2026-04-25

What Are OGP Tags?

OGP (Open Graph Protocol) is a set of HTML meta tags written in the <head> section that control how your page appears when shared on social platforms like Facebook, LINE, or Slack — including the title, description, and thumbnail image.

<meta property="og:title" content="Page Title" />

<meta property="og:description" content="Page description" />

<meta property="og:image" content="https://example.com/ogp.png" />

<meta property="og:url" content="https://example.com/page" />

<meta property="og:type" content="website" />

Why OGP Tags Matter

Without proper OGP tags, social shares may show no thumbnail or an irrelevant image. Proper configuration unifies your brand impression and significantly increases click-through from social media.

×2.5

Estimated CTR increase with proper OGP setup

1200×630px

Recommended og:image size

40%

Percentage of sites with no OGP tags

Essential OGP Tags

TagDescriptionRequired
og:titleTitle shown on social media (max 95 chars)Required
og:descriptionDescription shown on social media (max 200 chars)Required
og:imageThumbnail image URL for sharesRequired
og:urlCanonical URL of the pageRequired
og:typeContent type (website / article, etc.)Required
og:site_nameSite nameRecommended
og:localeLanguage and region (e.g., en_US)Recommended

Twitter Card Tags (for X)

TagDescription
twitter:cardCard type (summary_large_image recommended)
twitter:titleTitle shown on X (falls back to og:title)
twitter:descriptionDescription shown on X (falls back to og:description)
twitter:imageThumbnail image URL for X (falls back to og:image)

og:image Setup Guide

og:image is the most critical tag for first impressions on social media. Incorrect size or format can prevent the image from showing or cause unwanted cropping.

ItemRecommendedNotes
Size1200×630pxMinimum 600×315px
Aspect ratio1.91:1Standard landscape ratio
File formatJPEG / PNGGIF/WebP may not work on all platforms
File sizeUnder 8MBUnder 1MB recommended
URL typeAbsolute URL requiredRelative paths won't work

Common Mistakes to Avoid

No og:image set

The most common mistake. Without og:image, shares will show no thumbnail, drastically reducing click-through rates. Set it on every page.

Using relative paths for og:image

Always use an absolute URL (starting with https://) for og:image. Relative paths cannot be resolved by most social platforms.

og:description is too long

Facebook truncates descriptions at around 200 characters. Put key information first and keep descriptions concise.

Using the same OGP image and description on every page

Setting unique og:image and og:description for key pages like blog posts and product pages improves brand experience and click-through rates.

Check Your Site's OGP Settings

Enter a URL to instantly check your OGP tag settings including og:title, og:description, and og:image. Also checks Twitter Card and structured data.

FAQ

Do OGP tags affect SEO rankings?
OGP tags don't directly influence Google search rankings. However, they significantly impact click-through rates (CTR) when content is shared on social media. Attractive thumbnails and descriptions in social shares drive more traffic to your site, indirectly boosting your overall visibility.
What is the recommended og:image size?
The recommended og:image size is 1200×630px with an aspect ratio of 1.91:1. JPEG or PNG formats are preferred, and the file size should be under 8MB. For X (Twitter), a minimum of 600×314px is recommended (maximum 4096×4096px).
What is the difference between Twitter Card and OGP?
OGP (Open Graph Protocol) is a standard used by Facebook, LINE, Slack, and many other social platforms. Twitter Card tags (twitter:card, etc.) are X (formerly Twitter) specific extensions. X also reads OGP tags as a fallback, but it's recommended to set both Twitter Card and OGP tags for the most accurate display.
How can I check my OGP settings?
You can check your OGP tag settings for free by entering your URL in SEO_CHECK's SEO Score Diagnosis tool. It checks og:title, og:description, og:image, og:url and more. Facebook's Sharing Debugger (developers.facebook.com/tools/debug) is also useful for clearing the OGP cache and previewing your shared content.
How do I set up OGP tags in WordPress?
There are two main ways to set up OGP in WordPress. First, you can use an SEO plugin like Yoast SEO or All in One SEO Pack — these allow easy configuration from the admin dashboard. Second, you can directly output OGP tags in functions.php using the wp_head() hook. Using a plugin is recommended as it reduces the chance of configuration errors.