Cách add thêm "Facebook Comment" vào website

You like to comment on your friend’s photos and status updates but how would you like to be able to comment on their website? I know… me too... thumbnail 1 summary
You like to comment on your friend’s photos and status updates but how would you like to be able to comment on their website? I know… me too, right – I like the idea of staying connected through Facebook in more ways than just on the Facebook site. In about five minutes you can have fully operational comments up and running on you site or blog – not to mention you don’t need to be a web guru to do it.



Paste this code where you would like your comments to appear.
And replace “uniqueID” with a unique number for that page.

Code:
<fb:comments xid="uniqueID" numposts="10" width="440" />
Paste this code just before your closing </body> tag.
Code:
<div id="fb-root"></div>
<script>
  window.fbAsyncInit = function() {
    FB.init({appId: 'your app id', status: true, cookie: true,
             xfbml: true});
  };
  (function() {
    var e = document.createElement('script'); e.async = true;
    e.src = document.location.protocol +
      '//connect.facebook.net/en_US/all.js';
    document.getElementById('fb-root').appendChild(e);
  }());
</script>

Không có nhận xét nào

Đăng nhận xét

Tin HOT

Dịch thuật PLG