Open Graph 데이터의 최대 소비자입니다. og:title, og:description, og:image를 사용합니다. 권장 이미지는 1200×630 픽셀이며 1.91:1 비율로 뉴스피드에서 잘림 없이 표시됩니다. 캐시가 적극적이므로 변경 후에는 Sharing Debugger를 사용해 새로고침하세요.
Open Graph 태그로 웹사이트 최적화
Open Graph (OG)란 무엇인가요?
최적의 오픈 그래프 이미지 크기
Open Graph 태그의 쉬운 통합
SEO에서 Open Graph의 중요성
<head> 내부에 배치되는 HTML <meta> 요소로, URL이 다른 곳(Facebook 피드, X 게시물, LinkedIn 업데이트, WhatsApp 채팅, Discord 서버, iMessage 스레드 또는 Slack 채널 등)에서 공유될 때 페이지가 어떻게 표시되어야 하는지를 설명합니다. Open Graph 프로토콜은 2010년 Facebook에 의해 처음 도입되었으며, 그 이후로 거의 모든 주요 플랫폼에서 링크 미리보기의 사실상 표준이 되었습니다. 완전한 Open Graph 메타 태그 세트는 리치 미리보기 카드 안에 표시되는 제목, 설명, 이미지, 유형 및 표준 URL에 대한 완전한 제어권을 제공하여, 평범한 하이퍼링크를 클릭률에서 일반 링크를 일관되게 능가하는 시선을 끄는 스니펫으로 바꿔줍니다.<meta property="og:title" content="Your Page Title" />
<meta property="og:description" content="A short, compelling summary of the page." />
<meta property="og:image" content="https://example.com/preview.png" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:url" content="https://example.com/article" />
<meta property="og:type" content="website" />
<meta property="og:site_name" content="Example" />
<meta property="og:locale" content="en_US" />거의 모든 주요 소셜 네트워크와 메신저는 Open Graph 메타데이터를 읽지만, 각각 이미지 크기, 캐싱, 대체 방안에 대한 자체 규칙을 적용합니다. 가장 엄격한 요구사항을 충족하면 동일한 이미지 세트가 모든 곳에서 작동합니다.
Open Graph 데이터의 최대 소비자입니다. og:title, og:description, og:image를 사용합니다. 권장 이미지는 1200×630 픽셀이며 1.91:1 비율로 뉴스피드에서 잘림 없이 표시됩니다. 캐시가 적극적이므로 변경 후에는 Sharing Debugger를 사용해 새로고침하세요.
Twitter Card 메타가 없을 때 Open Graph 태그로 폴백하지만, 큰 미리보기 카드를 얻으려면 twitter:card를 summary_large_image로 설정하고 twitter:image도 선언해야 합니다. 이미지는 5 MB 미만이고 최소 300×157 픽셀이어야 합니다. 1200×630이 안전한 기본값입니다.
og:title, og:description, og:image, og:type를 읽습니다. 이미지는 5 MB 미만, 최소 1200×627 픽셀(비율 1.91:1)이어야 합니다. LinkedIn은 첫 크롤을 약 7일간 캐시하므로 변경 사항 게시 후 Post Inspector로 재가져오기를 강제하세요.
두 메신저 모두 HTTPS로 Open Graph 태그를 가져오며 이미지 크기에 엄격한 한도가 있습니다. WhatsApp은 약 300 KB를 초과하는 것을 잘라내므로, 이미지를 최적화하고 렌더링을 빠르게 하기 위해 og:image:width와 og:image:height를 선언하세요. iMessage는 가능할 때 1:1 정사각형 이미지를 선호하므로 여러 og:image 태그를 통해 두 비율을 모두 제공하는 것을 고려하세요.
세 플랫폼 모두 표준 og:title, og:description, og:image 3종 세트로 미리보기를 렌더링합니다. Discord는 사이드바 강조에 theme-color도 적용합니다. Telegram은 iframe과 JS를 제거하므로, 태그가 런타임에 주입되지 않고 초기 서버 렌더링 HTML에 포함되어 있는지 확인하세요.
Pinterest는 article:author와 Rich Pin 유형으로 Open Graph를 확장합니다. Reddit는 링크가 제출되면 og:title와 og:image를 가져와 이미지를 게시물 썸네일로 사용합니다. 둘 다 1.91:1 와이드 배너보다 세로 또는 정사각형 이미지(2:3에서 1:1)를 선호합니다.
이 스니펫을 프로젝트에 추가하여 가장 일반적인 스택에서 Open Graph 태그를 연결하세요. 각 예시는 서버에서 동일한 최소 실용 세트를 렌더링하므로 크롤러가 첫 페인트에서 이를 볼 수 있습니다.
// app/page.tsx
export const metadata = {
title: 'Your Page Title',
description: 'A short, compelling summary of the page.',
openGraph: {
title: 'Your Page Title',
description: 'A short, compelling summary of the page.',
url: 'https://example.com/article',
siteName: 'Example',
images: [{ url: 'https://example.com/preview.png', width: 1200, height: 630 }],
locale: 'en_US',
type: 'website'
}
}<script setup lang="ts">
useSeoMeta({
title: 'Your Page Title',
description: 'A short, compelling summary of the page.',
ogTitle: 'Your Page Title',
ogDescription: 'A short, compelling summary of the page.',
ogImage: 'https://example.com/preview.png',
ogUrl: 'https://example.com/article',
ogType: 'website',
ogLocale: 'en_US'
})
</script>---
const { title, description, image, url } = Astro.props
---
<head>
<title>{title}</title>
<meta name="description" content={description} />
<meta property="og:title" content={title} />
<meta property="og:description" content={description} />
<meta property="og:image" content={image} />
<meta property="og:url" content={url} />
<meta property="og:type" content="website" />
</head>// functions.php — works without an SEO plugin
add_action('wp_head', function () {
if (!is_singular()) return;
global $post;
$img = get_the_post_thumbnail_url($post->ID, 'full') ?: '';
printf('<meta property="og:title" content="%s" />', esc_attr(get_the_title($post)));
printf('<meta property="og:description" content="%s" />', esc_attr(wp_trim_words($post->post_excerpt ?: $post->post_content, 30)));
printf('<meta property="og:image" content="%s" />', esc_url($img));
printf('<meta property="og:url" content="%s" />', esc_url(get_permalink($post)));
echo '<meta property="og:type" content="article" />';
});개발자와 콘텐츠 팀이 Open Graph 메타 태그를 구현할 때 가장 자주 묻는 질문에 대한 빠른 답변입니다.
twitter:* 네임스페이스를 가집니다. X는 Twitter 전용 태그가 없을 때 Open Graph로 폴백하므로, 대부분의 사이트에서는 Open Graph와 단일 twitter:card 선언을 게시하면 큰 이미지 미리보기를 사용할 수 있습니다.og:image에 캐시 무효화 쿼리 문자열을 추가하세요.<title>, meta description, 그리고 문서에서 처음 발견하는 큰 이미지입니다. 결과는 예측할 수 없습니다 — 종종 잘못된 이미지, 잘린 제목 또는 미리보기 없음으로 나타납니다. 세 개의 태그(og:title, og:description, og:image)만 추가해도 추측이 필요 없어집니다.og:title이며, OG:Title이 아닙니다. 대소문자가 혼합된 속성 이름은 대부분의 크롤러가 조용히 무시하므로, 리팩토링 후 미리보기가 갑자기 작동하지 않는 가장 흔한 원인 중 하나입니다.