首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >facebook上的Open Graph Protocol vs sharing链接?

facebook上的Open Graph Protocol vs sharing链接?
EN

Stack Overflow用户
提问于 2011-12-13 12:05:13
回答 1查看 432关注 0票数 1

当我使用图形协议让facebook获取我们的链接时,我有一个问题,如下所示。(我的网站是越南语)

Fisrt:我在susongmoi.net/facebook.html上做了一个测试(它工作得很好)

第二:我将这个(标签)应用到其他页面,比如url:http://sucsongmoi.net/48/tam-kieu-ca-si-thu-minh-6882s.html,但是它不再起作用了。我觉得很奇怪。我在https://developers.facebook.com/tools/debug上做了一个测试,但我似乎找不到问题所在。

提前感谢

代码:

这是第二个链接的meta:

代码语言:javascript
复制
<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" /> 
EN

回答 1

Stack Overflow用户

发布于 2011-12-13 14:52:49

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

代码语言:javascript
复制
<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调试器说:

代码语言:javascript
复制
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.

这意味着您没有在页面上放置meta标签,请再次检查

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/8484180

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档