使用自定义标题、内容和图像在 Facebook 上共享链接不起作用

发布于 2024-12-29 07:10:25 字数 356 浏览 5 评论 0原文

当他们想要在 Facebook 页面中共享链接时,我使用 Facebook 头标签来生成特定的标题、描述和图像,看起来像这样:

<meta property="og:title" content="title" />
<meta property="og:description" content="description" />
<meta property="og:image" content="thumbnail_image" />

但如果我尝试共享我的链接,它不会接收它们,而是仅显示默认信息。如果我查看源代码,元标记的格式正确,所以我不确定我做错了什么。

提前致谢!

I'm using the Facebook head tags to generate specific title, description and images when they want to share a link in their Facebook page, it looks like this:

<meta property="og:title" content="title" />
<meta property="og:description" content="description" />
<meta property="og:image" content="thumbnail_image" />

But if I try to share my link it doesn't pick them up, it just shows the default info. If I look in the source code the meta tags are formatted correctly so I'm not sure what am I doing wrong.

Thanks in advance!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

淑女气质 2025-01-05 07:10:25

尝试使用 Facebook 调试器查看您的页面有什么问题:
http://developers.facebook.com/tools/debug

Try the Facebook Debugger to see what's wrong with your page:
http://developers.facebook.com/tools/debug

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文