วันพฤหัสบดีที่ 20 มกราคม พ.ศ. 2554

Facebook comment for blogspot

แปลมาจาก http://www.bloggermint.com/201...-comment-box-on-blogger-blogs/ 

1.เข้าไปที่ http://developers.facebook.com/setup/ ก่อนเลย

2.กรอกข้อมูล

Facebook comment box on Blogger

3.ก็จะได้ตัวเลข ID มา 2 ชุด ใช้ชุดที่อยู่ในสี่เหลี่ยมนะ

Facebook comment box on Blogger

4.คราวนี้ก็ไปที่ Blogger ทำตามลำดับในรูปเลย

Facebook comment box on Blogger

5.หาแท็ก <data:post.body/>

Facebook comment box on Blogger


6.วางโค้ดนี้ไว้ข้างหลังแท็ก <data:post.body/>


<<b:if cond='data:blog.pageType == &quot;item&quot;'>
    <div id='fb-root'/>
  <script>
  window.fbAsyncInit = function() {
  FB.init({appId: &#39;APPID&#39;, status: true, cookie: true,
  xfbml: true});
  };
  (function() {
  var e = document.createElement(&#39;script&#39;); e.async = true;
  e.src = document.location.protocol  +
  &#39;//connect.facebook.net/th_TH/all.js&#39;;
  e.async = true;
  document.getElementById(&#39;fb-root&#39;).appendChild(e);
  }());
  </script>
  <fb:comments/>
  </b:if>

Facebook comment box on Blogger

7.แก้ตรง APPID เอาตัวเลขจากข้อ 2.มาใส่แทน

Facebook comment box on Blogger

Facebook comment box on Blogger

8. save

วิธีทำ Facebook comment box on Blogger
เครดิต http://blokipedia.blogspot.com/