4

google plus documentationおよびその他の質問によると、次のコードは共有時にデフォルトの説明を追加する必要があります。

メタ:

<meta property="og:title" content="TITLE HERE" />
<meta property="og:image" content="https://si0.twimg.com/profile_images/604644048/sign051.gif" />
<meta property="og:description" content="DESC HERE" />
<meta name="description" content="DESC HERE" />

HTML

<div class="g-plusone" data-annotation="inline" data-width="300"></div>

<script type="text/javascript">
  (function() {
    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
    po.src = 'https://apis.google.com/js/plusone.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
  })();
</script>

ただし、画像とタイトルは機能しますが、共有する際の説明はありません。
上記のコードはjsfiddleにもあります。

4

0 に答える 0