【问题标题】:Google+ Sharing - Passing hashes as parameterGoogle+ 共享 - 将哈希值作为参数传递
【发布时间】:2012-11-17 13:17:16
【问题描述】:

在 twitter 中,您可以在按下推文按钮时确定要包含哪些主题标签,这可以使用 hashtags 参数完成。

分享到 Google+ 时有什么类似的吗?我读过Share documentation,但没有找到类似的东西(我最关心Share Link 的分享方法)。

你知道有什么方法可以做到吗?

【问题讨论】:

    标签: share google-plus hashtag


    【解决方案1】:

    如果您的主要兴趣是能够通过主题标签搜索您的帖子,您可以将主题标签添加到 sn-p 描述中。主题标签的呈现方式不会与文本的其余部分不同,但也无法点击。

    <html itemscope itemtype="http://schema.org/Organization">
      <head>
        <meta itemprop="name" content="Example">
        <meta itemprop="description" content="
            An #example of how to add #hashtags to the snippet description.">
        <meta itemprop="image" 
            content="https://www.google.com/images/srpr/logo3w.png">
      </head>
      <body>
        <div class="g-plus" data-action="share"></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>
      </body>
    </html>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-06-05
      • 1970-01-01
      • 2012-05-18
      • 2011-01-31
      • 2018-12-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多