Google Plus不会从头部选择元标记

时间:2013-08-02 07:04:16

标签: share google-plus meta-tags

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

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

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

1 个答案:

答案 0 :(得分:2)

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

&#13;
&#13;
<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>
&#13;
&#13;
&#13;