可能重复:
How to implement the Facebook "Like" button for my website
我不理解向我的页面添加类似按钮和类似页面的“入门”方向。有人可以帮帮我吗?
答案 0 :(得分:0)
http://developers.facebook.com/docs/reference/plugins/like/
像Button HTML一样
<script>(function(d){
var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;}
js = d.createElement('script'); js.id = id; js.async = true;
js.src = "//connect.facebook.net/en_US/all.js#appId=172873559454230&xfbml=1";
d.getElementsByTagName('head')[0].appendChild(js);
}(document));</script>
<div class="fb-like" data-href="URL_GOES_HERE" data-send="false" data-width="450" data-show-faces="true"></div>
你喜欢的页面是什么意思?