开放图谱协议 vs 在 Facebook 上分享链接?

发布于 2024-12-20 19:38:19 字数 1704 浏览 2 评论 0 原文

当我使用图形协议让 facebook 获取我们的链接时,我遇到了如下问题。 (我的网站是越南语)

第一:我在 sucsongmoi.net/facebook.html 上进行了测试(它工作完美)

第二:我将此(标签)应用到其他页面,例如 url:http://sucsongmoi.net/48/tam-kieu-ca-si-thu-minh-6882s.html 屁股它不再起作用了。我感觉很奇怪。我在 https://developers.facebook.com/tools/debug 上进行了测试,但似乎我无法找出问题所在。

预先感谢

代码:

这是第二个链接的元数据:

<title>Tắm kiểu ca sĩ Thu Minh - SSM</title>
<meta property="og:title" content="Tắm kiểu ca sĩ Thu Minh - SSM" />
<meta property="og:type" content="article" />
<meta property="og:url" content="sucsongmoi.net/48/tam-kieu-ca-si-thu-minh-6882s.html"; />

<meta property="og:image" content="sucsongmoi.net/images/logo.png"; />
<meta property="og:site_name" content="SSM" />
<meta property="og:description" content="des" /> 
– nghiavt 56 mins ago upvote flag
Fist link: 
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<title>Angelina Jolie bị "đánh bại" dưới tay Jennifer Aniston - SSM </title>
<meta name="robots" content="INDEX,FOLLOW" />
<meta property="og:title" content="Angelina Jolie bị &quot;đánh bại&quot; dưới tay   ennifer Aniston - SSM" />
<meta property="og:type" content="article" />
<meta property="og:url" content="sucsongmoi.net/facebook.html"; />
<meta property="og:image" content="sucsongmoi.net/images/logo.png"; />
<meta property="og:site_name" content="SSM" />
<meta property="og:description" content="des" /> 

When i use graphic protocol to let facebook fetch to our link, i have a problem as follow. (My site is vietnamese)

Fisrt: I do a test on sucsongmoi.net/facebook.html (it work perfectly)

Second: I apply this (tag) to others page like url: http://sucsongmoi.net/48/tam-kieu-ca-si-thu-minh-6882s.html
Butt it doesn't works any more. I feel strange. i did a test on https://developers.facebook.com/tools/debug but seem i couldn't figure out the problem.

Thanks in advance

Code:

This is meta for second link:

<title>Tắm kiểu ca sĩ Thu Minh - SSM</title>
<meta property="og:title" content="Tắm kiểu ca sĩ Thu Minh - SSM" />
<meta property="og:type" content="article" />
<meta property="og:url" content="sucsongmoi.net/48/tam-kieu-ca-si-thu-minh-6882s.html"; />

<meta property="og:image" content="sucsongmoi.net/images/logo.png"; />
<meta property="og:site_name" content="SSM" />
<meta property="og:description" content="des" /> 
– nghiavt 56 mins ago upvote flag
Fist link: 
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<title>Angelina Jolie bị "đánh bại" dưới tay Jennifer Aniston - SSM </title>
<meta name="robots" content="INDEX,FOLLOW" />
<meta property="og:title" content="Angelina Jolie bị "đánh bại" dưới tay   ennifer Aniston - SSM" />
<meta property="og:type" content="article" />
<meta property="og:url" content="sucsongmoi.net/facebook.html"; />
<meta property="og:image" content="sucsongmoi.net/images/logo.png"; />
<meta property="og:site_name" content="SSM" />
<meta property="og:description" content="des" /> 

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

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

发布评论

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

评论(1

屌丝范 2024-12-27 19:38:19

一个小问题,为什么你的属性后面有分号?

<meta property="og:url" content="sucsongmoi.net/facebook.html"; />
<meta property="og:url" content="sucsongmoi.net/48/tam-kieu-ca-si-thu-minh-6882s.html"; />

当我调试你的链接时,FB调试器说:

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

这意味着你没有将元标记添加到你的页面,请再次检查

A little thing, why you have semi-colon after your attribute?

<meta property="og:url" content="sucsongmoi.net/facebook.html"; />
<meta property="og:url" content="sucsongmoi.net/48/tam-kieu-ca-si-thu-minh-6882s.html"; />

And when I debug your link, FB debugger said:

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

That means you didn't put meta tag to your page, check it again

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