11 พฤศจิกายน 2557

Create Facebook Comment On Your Website


1. Go to https://developers.facebook.com/docs/plugins/comments/
2. Enter Website URL.
3. Generate Code.



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

  <html xmlns="http://www.w3.org/1999/xhtml">

  <head>

  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

  <title>Test Facebook Comment</title>

  </head>

 

  <body>

 

  <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&version=v2.0";

 
fjs.parentNode.insertBefore(js, fjs); 

  }(document, 'script', 'facebook-jssdk'));</script>

 

  <p>Test COMMENT</p>

  <div class="fb-comments" data-href="http://localhost/" data-numposts="5" data-colorscheme="light"></div>

  </body>

  </html>

 

รายละเอียดเพิ่มเติม
https://developers.facebook.com/docs/plugins/checklist/







ไม่มีความคิดเห็น: