Kode Pasang Kotak Komentar Facebook Responsive di Blog

CB Blogger | October 19, 2015

CARA membuat Kotak Komentar Facebook Responsive di Blog. Codes for Adding Facebook Comment Box/Form on Blogger Blog.

Komentar Facebook Responsive di Blog

KODE FACEBOOK OPEN GRAPH
Di atas bawah <head>

<meta content='Kode ID Facebook admin' property='fb:admins'/> 
<meta content='Kode ID Aplikasi Facebook' property='fb:app_id'/>

KODE JAVASCRIPT
Di atas </head>

<script type="text/javascript"> 
//<![CDATA[ $(window).bind("load resize", function(){ var url = location.protocol+'//'+location.host+location.pathname; var containercm_width = $('#container-commentfb').width(); $('#container-commentfb').html('<div class="fb-comments" ' + 'data-href="'+url+'"' + ' width="' + containercm_width + '" data-num-posts="10"></div>'); FB.XFBML.parse( ); }); //]]> 
</script>

KODE XML & HTML
Di bawah <data:post.body/>

<b:if cond='data:blog.pageType == &quot;item&quot;'> 
<div id='fb-root'/> 
<script src='http://connect.facebook.net/en_US/all.js#xfbml=1'/> 
<div id='container-commentfb' style='width: 100%;'>
<fb:comments expr:href='data:post.url' num_posts='10' width='650'/>
</div> 
</b:if>

Mudah 'kan cara Memasang Kotak Komentar Facebook Responsive di blog?

Previous
« Prev Post

Related Posts

0 komentar on Kode Pasang Kotak Komentar Facebook Responsive di Blog

Post a Comment

 
Copyright © 2020. New Johny Wuss - All Rights Reserved
Template by CB Blogger & Maskolis