- https://www.mindphp.com/%E0%B8%9A%E0%B8% ... -host.html
- เครื่องมือเช็คผล
-
1. https://developers.facebook.com/docs/pl ... are-button
โค้ด: เลือกทั้งหมด
<script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>
<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/th_TH/sdk.js#xfbml=1&appId=330441763797418&version=v2.0";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
รูปแบบปุ่ม
โค้ด: เลือกทั้งหมด
<div class="fb-share-button" data-href="{SHARE_TOPIC}" data-layout="button"></div>
โค้ด: เลือกทั้งหมด
<a href="https://www.facebook.com/sharer/sharer.php?u={BOARD_URL}{SHARE_TOPIC_LINE}" onclick="window.open(this.href, 'mywin',
'left=20,top=20,width=100,height=500,toolbar=1,resizable=0'); return false;" ><img src="{T_THEME_PATH}/mtb/images/facebook.png"/></a>