Google Plus 分享未从头部选取元标签

2023-12-10

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

    <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 开发者网站,Google Plus 共享链接的示例代码片段是:

<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>
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Google Plus 分享未从头部选取元标签 的相关文章

随机推荐