Search This Blog

Home » » Facebook Comments button to website

Facebook Comments button to website

Written By Harsha on Wednesday, 8 May 2013 | 00:09

Facebook Comments button to website



<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt;
<html xmlns:fb=”http://ogp.me/ns/fb#“>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ />
<title>Untitled Document</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/en_US/all.js#xfbml=1″;
fjs.parentNode.insertBefore(js, fjs);
}
(document, ‘script’, ‘facebook-jssdk’));
</script>

<!–Using XFBML–>


<fb:comments href=”http://www.facebook.com/htsipl” width=”470″ num_posts=”10″></fb:comments>


<!–Using HTML5–>


<!–<div data-href=”http://www.facebook.com/htsipl” data-width=”470″ data-num-posts=”10″></div>–>


</body>

</html>

0 comments:

Post a Comment

Like us on Facebook
Follow us on Twitter
Recommend us on Google Plus
Subscribe me on RSS