【问题标题】:Google Plus Share does not take descriptionGoogle Plus Share 没有描述
【发布时间】:2015-12-10 11:50:39
【问题描述】:

我正在使用 OG 协议进行 google 分享。

标记中的元标记下方添加。
<meta property="og:url" content="http://goo.gl/oUpJs1" />
<meta property="og:title" content="SA Test Lesson 14092015 04" />
<meta property="og:site_name" content="TappnEd" />
<meta property="og:description" content="this is description." />
<meta property="og:image" content="http://a35080557e7a03b9f1f1-86aee789662273f4e4ffb1bc62c5c3ee.r62.cf3.rackcdn.com/11442230240.png" />
<meta property="og:image:type" content="image/jpeg" />
<meta property="og:image:width" content="320" />
<meta property="og:image:height" content="240" />
<meta property="og:type" content="article" />

当我点击https://plus.google.com/share?url=http://goo.gl/WpBlt2 时,它会显示所有相关信息但缺少描述。

有人可以请教应该是什么解决方案。

【问题讨论】:

  • Google+ 通常仅在您没有图像缩略图或使用 Article rendering 时才会显示说明。当前图像太小,无法呈现文章。

标签: php google-plus facebook-opengraph social-media


【解决方案1】:

添加一个简单的:

<meta name="description" content="your description..." />

google 会考虑到这一点

或 使用 schema.org 标签(不要忘记修改你的 html 标签)

<html itemscope itemtype="http://schema.org/Article">

<!-- Schema.org markup for Google+ -->
<meta itemprop="name" content="The Name or Title Here">
<meta itemprop="description" content="This is the page description">
<meta itemprop="image" content="http://www.example.com/image.jpg">

【讨论】:

  • 开放图使用&lt;meta property 而不是&lt;meta name - 与他的原始代码一样
  • @Mousey 是的,元名称不是开放图,但谷歌不只解析开放图标签。无论如何,我认为正确的答案是亚伯拉罕在他的问题下方发表评论
  • @heidi 我不确定&lt;meta name 是否是您的答案中的错误(如果是,您可以编辑您的答案)。架构标记仅在嵌套在具有范围的标签内时才有效,通常微数据进入正文,请参阅我的答案。 stackoverflow.com/a/32782177/4258817
猜你喜欢
  • 1970-01-01
  • 2013-06-24
  • 2011-01-10
  • 1970-01-01
  • 1970-01-01
  • 2020-06-19
  • 1970-01-01
  • 2019-01-09
  • 2020-09-28
相关资源
最近更新 更多