Open Graph 标签生成器

生成经过转义的 Open Graph 标题、描述、页面及图片标签。

试用一组数据

依次输入标题、描述、页面 URL 和图片 URL,逗号仅用作分隔。

Release notes, See what is new, https://example.com/news, https://example.com/cover.png

预期输出

<meta property="og:title" content="Release notes">
<meta property="og:description" content="See what is new">
<meta property="og:type" content="website">
<meta property="og:url" content="https://example.com/news">
<meta property="og:image" content="https://example.com/cover.png">

常见问题

标签应放在哪里?
将标签添加到要分享页面的 head 中,并为页面及图片使用可公开访问的绝对 URL。
为什么平台仍显示旧图片?
平台通常缓存分享预览。等待缓存刷新,或使用平台的预览调试功能。

工具在当前浏览器中处理输入,不上传工具输入。