Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 26th, 2012  |  syntax: None  |  size: 0.86 KB  |  hits: 19  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2.  
  3. include 'fb_init.php'; ?>
  4.  
  5. <!doctype html>
  6. <html xmlns:fb="http://www.facebook.com/2008/fbml">
  7.   <body>
  8.    
  9.     <?=$user_info['id']?>
  10.     <?=$user_info['name']?>
  11.  
  12.     <div id="fb-root"></div>
  13.     <script>
  14.       window.fbAsyncInit=function()
  15.                         {
  16.                           FB.init({appId:'<?=$facebook->getAppId()?>',session<?=json_encode($session)?>,status:true,cookie:false,xfbml:false});
  17.                           FB.Event.subscribe('auth.login',function(){window.location.reload();});
  18.                           FB.Canvas.setAutoResize();
  19.                         };
  20.  
  21.       (function()
  22.                         {
  23.         var e=document.createElement('script');
  24.         e.src=document.location.protocol+'//connect.facebook.net/en_US/all.js';
  25.         e.async=true;
  26.         document.getElementById('fb-root').appendChild(e);
  27.       }());
  28.     </script>
  29.     </div>
  30.   </body>
  31. </html>