Parašė TBagT· 2011 Spa. 23 11:10:50
#1
Turiu koda kuris rodo naujienos komentarus facebooke (shadowboxe), bet komentaras eina ant visų temų kaip užgaudyt atskirame
php faile $info['news_id'] ?
<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/lt_LT/all.js#xfbml=1&appId=169190346477972";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<?php
echo "<center><br><br>";
echo "<div class='fb-comments' data-href='http://kinas.ql.lt/news.php?readmore=".$info['news_id']."' data-num-posts='2' data-width='500'></div>";
echo "</center>";
?>