在 Facebook 上发布链接 - 网站描述

发布于 2024-12-29 19:07:59 字数 420 浏览 4 评论 0原文

我已经将这些标签包含在我的 html 文件中:

<前><代码> <头>>>

但是,如果有人将 URL 复制到 Facebook 并共享它,它只会显示页面的一部分作为其描述。

任何想法,可能出了什么问题?

谢谢

I have already included these tags in my html file:

  <head> <meta property="og:title" content="MyTitle"/> 
  <meta property="og:site_name" content="MySite"/>        
  <meta property="og:url" content="http://mysite.com"/> 
  <meta property="og:description" content="description ..."/>

But if someone copies the Url to Facebook and shares it, it just shows a secton of the page as its description.

Any idea, what could be wrong?

thanks

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

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

发布评论

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

评论(2

青衫儰鉨ミ守葔 2025-01-05 19:07:59

正如 MMM 提到的,Facebook 确实缓存了 OpenGraph 元数据。

听起来您想使用 Facebook 调试器(有时仍称为 Linter) - 用于有两个原因。

  1. 它会向你确认Facebook的爬虫可以看到什么,这样你就可以判断你是否正确实现了OG元数据;而且
  2. 它还会重置 Facebook 的 OG 元数据缓存,这听起来像是您也想做的。

因此,请查看调试器,它可能会很好地解决您的问题。祝你好运!

As MMM mentioned, Facebook does indeed cache the OpenGraph metadata.

It sounds like you want to use the Facebook Debugger (sometimes still referred to as the Linter) — for two reasons.

  1. It will confirm to you what it is that Facebook's crawler can see, so you can tell whether or not you have implemented the OG metadata correctly; but also
  2. It will reset Facebook's cache of your OG metadata, which sounds like you also want to do.

So take a look at the Debugger and that may well resolve your problems. Good luck!

白鸥掠海 2025-01-05 19:07:59

Facebook 缓存了一些 OG 数据,因此更新可能需要一些时间。尝试将文件托管在不同的文件夹中,看看它是否仍然发生。

Facebook caches some OG data, hence it might take some time for it to update. Try hosting the file in a different folder and see if it's still happening.

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