【问题标题】:Sample code to share a post on google plus and get comments of the post using google plus api在 google plus 上分享帖子并使用 google plus api 获取帖子评论的示例代码
【发布时间】:2014-03-20 06:30:51
【问题描述】:

我想在 google plus 上分享一篇文章并使用 google+ api javascript 代码获取 cmets。请给我发送示例代码以分享并获取同一帖子的 cmets。

谢谢

【问题讨论】:

    标签: google-plus


    【解决方案1】:
     <!-- Place this tag where you want the share button to render. -->
    <div class="g-plus" data-action="share"></div>
    
    <!-- Place this tag after the last share tag. -->
    <script type="text/javascript">
      (function() {
        var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
        po.src = 'https://apis.google.com/js/platform.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
      })();
    </script>
    

    您也可以参考https://developers.google.com/+/web/share/

    【讨论】:

    • 我想获得 google plus users commnets of the post what I shared.i know this
    猜你喜欢
    • 2012-09-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-01-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多