facebook 调取点赞按钮 和 信息

<html>
<head>
    <title>Your Website Title</title>
    <!-- You can use open graph tags to customize link previews.
    Learn more: https://developers.facebook.com/docs/sharing/webmasters -->
    <meta property="og:url"           content="https://developers.facebook.com/blog/post/2016/11/01/unity-editor-beta/"  />
    <meta property="og:type"          content="website" />
    <meta property="og:title"         content="Your Website Title" />
    <meta property="og:description"   content="Your description" />
    <meta property="og:image"         content="http://www.your-domain.com/path/image.jpg" />
    <script src="https://connect.facebook.net/zh_HK/sdk.js"></script>
</head>
<body>
<!-- Load Facebook SDK for JavaScript -->
<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/zh_CN/sdk.js#xfbml=1&version=v2.8";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
</script>
<!-- Your like button code -->
<div class="fb-like" data-href="https://developers.facebook.com/blog/post/2016/11/01/unity-editor-beta/" data-layout="standard" data-action="like" data-show-faces="true" data-share="false"></div>
</body>
</html>





posted @ 2017-05-05 10:56  大咸菜·  阅读(1661)  评论(0编辑  收藏  举报