Google Plus分享不从头挑选元标记 [英] Google Plus share not picking meta tags from head

查看:68
本文介绍了Google Plus分享不从头挑选元标记的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在我的页面上实现Google Plus共享,但是不是从meta标签中选择标题,而是从共享对话框标题中的url中选择页面标题.我还需要添加其他内容吗?

I am trying to implement Google Plus share on my page but instead of picking title from meta tags it is picking page title from url in share dialog title. Do I need to include anything else?

    <meta property="og:title" content="Title"/>
    <meta property="og:description" content="Description"/>

    <a href="https://plus.google.com/share?url={google.com}"/>Link</a>

推荐答案

根据Google Developer Site,Google Plus共享链接的示例代码段为:

According to the Google Developer Site, the example code snippet for Google Plus shared links is:

<body itemscope itemtype="http://schema.org/Product">
  <h1 itemprop="name">Shiny Trinket</h1>
  <img itemprop="image" src="{image-url}" />
  <p itemprop="description">Shiny trinkets are shiny.</p>
</body>

这篇关于Google Plus分享不从头挑选元标记的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆