Guest User

Facebook Comments Box for PHP Fusion

a guest
Jan 18th, 2011
253
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         // Code Added for Facebook Comments Box
  2.  
  3.         echo "<table cellpadding='0' cellspacing='0' width='400' class='center tbl-border'>\n<tr>\n";
  4.         echo "<td class='tbl2' colspan='2'><strong>Comments Box</strong></td>\n";
  5.         echo "</tr>\n<tr>\n";
  6.         echo "<td class='tbl1'>\n";
  7.         echo "<div id='fb-root'></div>
  8.                 <script>
  9.                 window.fbAsyncInit = function() {
  10.                 FB.init({appId: 'XXXXXXXXXXXXXXX', status: true, cookie: true,
  11.                          xfbml: true});
  12.                 };
  13.                 (function() {
  14.                 var e = document.createElement('script'); e.async = true;
  15.                 e.src = document.location.protocol +
  16.                 '//connect.facebook.net/en_US/all.js';
  17.                 document.getElementById('fb-root').appendChild(e);
  18.                 }());
  19.                 </script>\n";
  20.         echo "<fb:comments numposts='10' width='400' publish_feed='false'></fb:comments>\n";
  21.         echo "</td></tr>\n</table>\n";
  22.  
  23.         // Code Ends here
RAW Paste Data