Facebook OGP 无法正常工作

发布于 2025-01-03 06:23:16 字数 929 浏览 2 评论 0 原文

当我的网站链接在 Facebook 上共享时,我尝试显示缩略图,但它无法正常工作。我尝试使用 Facebook 对象调试器,收到以下警告:

The og:url property should be explicitly provided, even if a value can be inferred from other tags.
The og:title property should be explicitly provided, even if a value can be inferred from other tags.

这些是我正在使用的元标记:

<meta property="fb:app_id" content="227018187387679" />
<meta property="og:locale" content="en_US" />
<meta property="og:title" content="Tree Removal Gone Wrong" />
<meta property="og:type" content="video.other" />
<meta property="og:url" content="http://www.asopao.com/video/2611" />
<meta property="og:image" content="http://www.asopao.com/media/videos/tmb/2611/1.jpg" />

URL 为 http://asopao.com/video/2611/tree-removal-gone-wrong

我做错了什么?

I'm trying to show a thumbnail when a link to my site is shared on Facebook but it's not working properly. I have tried using the Facebook object debugger and I get the following warnings:

The og:url property should be explicitly provided, even if a value can be inferred from other tags.
The og:title property should be explicitly provided, even if a value can be inferred from other tags.

These are the meta tags I'm using:

<meta property="fb:app_id" content="227018187387679" />
<meta property="og:locale" content="en_US" />
<meta property="og:title" content="Tree Removal Gone Wrong" />
<meta property="og:type" content="video.other" />
<meta property="og:url" content="http://www.asopao.com/video/2611" />
<meta property="og:image" content="http://www.asopao.com/media/videos/tmb/2611/1.jpg" />

The URL is http://asopao.com/video/2611/tree-removal-gone-wrong

What am I doing wrong?

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

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

发布评论

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

评论(1

冬天旳寂寞 2025-01-10 06:23:16

根据短绒:
http://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fasopao.com%2Fvideo%2F2611%2Ftree-removal-gone-wrong

您缺少这些标签。

这正是您的服务器发送到 facebook 的内容:

http://developers.facebook.com/tools/debug/og/echo?q=http%3A%2F%2Fasopao.com%2Fvideo%2F2611%2Ftree-removal-gone-wrong

这些是您发送的唯一元标记。

<meta charset="utf-8" />

<meta name="robots" content="noodp, noydir" />

<meta name="description" content=" Facebook is a social utility that connects people with friends and others who work, study and live around them. People use Facebook to keep up with friends, upload an unlimited number of photos, post links and videos, and learn more about the people they meet." />

According to the linter:
http://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fasopao.com%2Fvideo%2F2611%2Ftree-removal-gone-wrong

You're missing those tags.

Here's exactly what your server is sending to facebook:

http://developers.facebook.com/tools/debug/og/echo?q=http%3A%2F%2Fasopao.com%2Fvideo%2F2611%2Ftree-removal-gone-wrong

These are the only meta tags you're sending.

<meta charset="utf-8" />

<meta name="robots" content="noodp, noydir" />

<meta name="description" content=" Facebook is a social utility that connects people with friends and others who work, study and live around them. People use Facebook to keep up with friends, upload an unlimited number of photos, post links and videos, and learn more about the people they meet." />
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文