Google Plus share not picking meta tags from head

2019-02-19 22:12发布

问题:

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:

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>