Google Plus share not picking meta tags from head

2019-02-19 21:48发布

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>

1条回答
三岁会撩人
2楼-- · 2019-02-19 22:37

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>

查看更多
登录 后发表回答