你好!
我在尝试将链接发布到 Twitter 和 LinkedIn 时遇到图像生成问题。我最终得到了这些图像。我们已经在元数据中设置了我们的徽标,但它没有显示出来。我该如何修复,以便显示我们想要的图像?
提前感谢!
你好!
我在尝试将链接发布到 Twitter 和 LinkedIn 时遇到图像生成问题。我最终得到了这些图像。我们已经在元数据中设置了我们的徽标,但它没有显示出来。我该如何修复,以便显示我们想要的图像?
提前感谢!
它在这里可以正常工作——这是您期望的图片吗?
好的,问题不在于 Discourse 的图片链接预览在帖子中
而是你的论坛链接在 Twitter/LinkedIn 等平台上的显示?
是的!但它不是显示在 Twitter 或 LinkedIn 上的图片。
是的 - 它没有出现在 Twitter 和 Linkedin 上
opengraph tester 显示一切应该正常:
<!-- HTML Meta Tags -->
<title>Zoo Community Forum</title>
<meta name="description" content="A place for the community to help each other learn how to use the Zoo tools and API.">
<!-- Facebook Meta Tags -->
<meta property="og:url" content="https://community.zoo.dev">
<meta property="og:type" content="website">
<meta property="og:title" content="Zoo Community Forum">
<meta property="og:description" content="A place for the community to help each other learn how to use the Zoo tools and API.">
<meta property="og:image" content="https://discourse-uploads.zoo.dev/original/1X/162d5a9fda090bf15dbdcbb3d5b82056970f13a8.svg">
<!-- Twitter Meta Tags -->
<meta name="twitter:card" content="summary_large_image">
<meta property="twitter:domain" content="community.zoo.dev">
<meta property="twitter:url" content="https://community.zoo.dev">
<meta name="twitter:title" content="Zoo Community Forum">
<meta name="twitter:description" content="A place for the community to help each other learn how to use the Zoo tools and API.">
<meta name="twitter:image" content="https://discourse-uploads.zoo.dev/original/1X/162d5a9fda090bf15dbdcbb3d5b82056970f13a8.svg">
<!-- Meta Tags Generated via https://www.opengraph.xyz -->
并在 Twitter 和 LinkedIn 上显示以下结果:
问题似乎不在于 Discourse 返回的数据。
当然,前提是 Twitter/LinkedIn 接收到这些数据。
我猜测问题在于 Cloudflare 阻止了来自 Twitter/LinkedIn 爬取网站以生成预览的请求。
啊,我明白了——所以我这边似乎没有还能做的事情了吗?
感谢你的帮助!
不是 Discourse 的问题,我想是这样的。
下一步将是验证这一假设。
请确保您已遵循 Cloudflare 指南。
暂时禁用 Cloudflare 可能会有帮助,但 Twitter/LinkedIn 可能会缓存其结果,这可能不会立即生效。
访问日志可能包含更多信息。
在 Cloudflare 社区 上发帖讨论此事可能会有帮助。
我注意到 https://community.cloudflare.com/ 在 Twitter/LinkedIn 上确实显示正常,仅供参考,显然他们已经解决了这个问题。