오픈 그래프 태그는 웹페이지의 콘텐츠를 소셜 미디어 플랫폼에서 풍부한 객체로 만들 수 있도록 해주는 메타 태그 세트입니다. 원래 페이스북에서 만들어졌지만, 현재는 대부분의 소셜 미디어 플랫폼에서 공유 콘텐츠의 미리보기를 더 매력적이고 정보성 있게 만들기 위해 사용됩니다.
오픈 그래프 태그를 구현하면 다음과 같은 이점이 있습니다:
오픈 그래프 태그를 제공하지 않으면:
페이지에 오픈 그래프 태그를 추가하려면, HTML의 <head>
섹션에 다음과 같은 코드를 포함하세요:
<meta property="og:title" content="페이지 제목" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://www.example.com/page" />
<meta property="og:image" content="https://www.example.com/image.jpg" />
<meta property="og:description" content="페이지 설명" />
<meta property="og:site_name" content="사이트 이름" />
<meta property="og:locale" content="ko_KR" />
<meta property="og:article:author" content="https://www.facebook.com/author" />
<meta property="og:article:publisher" content="https://www.facebook.com/publisher" />
<meta property="og:article:section" content="섹션 이름" />
<meta property="og:article:tag" content="태그1, 태그2" />
<meta property="og:article:published_time" content="2022-01-01T12:00:00+00:00" />
<meta property="og:article:modified_time" content="2022-01-02T12:00:00+00:00" />
<meta property="og:article:expiration_time" content="2022-01-03T12:00:00+00:00" />
<meta property="og:video" content="https://www.example.com/video.mp4" />
<meta property="og:video:secure_url" content="https://www.example.com/video.mp4" />
<meta property="og:video:type" content="video/mp4" />
<meta property="og:video:width" content="1280" />
<meta property="og:video:height" content="720" />
<meta property="og:audio" content="https://www.example.com/audio.mp3" />
<meta property="og:audio:secure_url" content="https://www.example.com/audio.mp3" />
<meta property="og:audio:type" content="audio/mpeg" />
오픈 그래프 태그를 효과적으로 사용하려면 다음 지침을 따르세요:
오픈 그래프 태그는 소셜 참여와 클릭률을 높여 간접적으로 SEO에 영향을 줄 수 있습니다.
콘텐츠에 큰 변화가 있거나 공유에 문제가 있을 때마다 오픈 그래프 태그를 업데이트하세요.
가능하지만, 각 페이지의 특성에 맞게 태그를 맞춤 설정하는 것이 가장 좋습니다.
네, 모든 페이지에 오픈 그래프 태그를 포함하면 소셜 미디어에서 콘텐츠가 어떻게 보일지 더 잘 제어할 수 있습니다.
"og:title"은 페이지의 제목이고, "og:description"은 페이지의 간단한 요약입니다.
"og:image"는 정적 이미지에, "og:video"는 동영상 콘텐츠에 사용됩니다.
아니요, 오픈 그래프 태그는 캐싱 제어에 사용되지 않습니다. 캐싱은 HTTP 헤더나 메타 태그 등 다른 방법을 사용하세요.
동적 사이트라면 오픈 그래프 태그와 동적 robots.txt 파일을 조합해 콘텐츠가 적절히 공유되도록 할 수 있습니다.
아니요, 오픈 그래프 태그는 중복 콘텐츠 방지용이 아닙니다. 대신 canonical 태그 등 SEO 베스트 프랙티스를 사용하세요.
Facebook Sharing Debugger와 같은 도구로 소셜 미디어 플랫폼에서 오픈 그래프 태그가 어떻게 해석되는지 확인할 수 있습니다. 브라우저 확장 프로그램이나 온라인 도구로도 테스트할 수 있습니다.
오픈 그래프 태그는 소셜 미디어 공유와 참여에 중요하지만, 전체적인 SEO 전략의 일부로 활용해야 합니다. 항상 사용자에게 고품질의 관련 콘텐츠를 제공하는 데 집중하고, 오픈 그래프 태그로 소셜 미디어 플랫폼이 해당 콘텐츠를 올바르게 안내하도록 하세요.