篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了html 非阻塞异步Facebook Like box相关的知识,希望对你有一定的参考价值。
<!--
Remove the FB like box script from your header and modify the following for your use.
Then place it in your html (like a widget area) where you want it to appear.
-->
<!-- begin facebook likebox change yourfacebookpage (3 locations) and Your Facebook Page Title -->
<div
class="fb-page"
data-href="https://www.facebook.com/yourfacebookpage"
data-tabs="timeline"
data-small-header="true"
data-adapt-container-width="true"
data-hide-cover="true" data-show-facepile="false"
>
<blockquote cite="https://www.facebook.com/yourfacebookpage" class="fb-xfbml-parse-ignore">
<a href="https://www.facebook.com/yourfacebookpage">
Your Facebook Page Title
</a>
</blockquote>
</div>
<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;
//notice the js.asynch=true;
js.async=true; js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.8";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
以上是关于html 非阻塞异步Facebook Like box的主要内容,如果未能解决你的问题,请参考以下文章