Kode Pasang Kotak Komentar Facebook Responsive di Blog

Posted by New Johny Wuss

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?

» Thanks for reading: Kode Pasang Kotak Komentar Facebook Responsive di Blog
Previous
« Prev Post
CB Blogger
New Johny WussUpdated: October 18, 2015

0 comments:

Post a Comment

Follow & Get Update by Email

CB