Facebook comments


การติดตั้ง Facebook comments ใน Blogger

ติดตั้งโคดใต้ <body expr:class='data:blog.pageType' itemscope='' itemtype='http://schema.org/WebPage'>

โค้ดที่จะนำไปติดตั้ง

<div id='fb-root'/>
    <script>
      //<![CDATA[
      window.fbAsyncInit = function() {
        FB.init({
          appId : 'YOUR_APPLICATION_ID',
          status : true, // check login status
          cookie : true, // enable cookies to allow the server to access the session
          xfbml : true // parse XFBML
        });
      };
      (function() {
        var e = document.createElement('script');
        e.src = document.location.protocol + '//connect.facebook.net/th_TH/all.js';
        e.async = true;
        document.getElementById('fb-root').appendChild(e);
      }());
      //]]>
    </script>

นำโค้ดต่อไปนี้ใส่ใน Gadget โดยเปลี่ยนที่เป็นสีแดง sesa35ict ให้เป็นแพนเพจของท่านเอง

<div class="fb-comments" data-href="https://www.facebook.com/sesa35ict" data-width="350" data-numposts="3"></div>

Share on Google Plus

About suang

    Blogger Comment
    Facebook Comment