利用這個 api : http://developers.facebook.com/docs/ref ... gins/like/
放在標題的下面最右側空白的地方比較醒目一點, 如下所示: 程式碼如下:
代碼: 選擇全部
<script type="text/javascript">
document.write('<iframe src="http://www.facebook.com/plugins/like.php?href='+encodeURIComponent("http://bbs.diary.tw/{U_VIEW_TOPIC}")+'&layout=standard&show_faces=false&width=450&action=recommend&font&colorscheme=light&height=35" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:35px;" allowTransparency="true"></iframe>');
</script>