Posted By

dottDesign on 09/29/11


Tagged

javascript textmate facebook


Versions (?)

Facebook App JS


 / Published in: Other
 

  1. <script type="text/javascript">
  2. window.fbAsyncInit = function() {
  3. FB.Canvas.setAutoGrow();
  4.  
  5. }
  6. // Do things that will sometimes call sizeChangeCallback()
  7. function sizeChangeCallback() {
  8. FB.Canvas.setAutoGrow();
  9. }
  10. </script>
  11.  
  12. <div id="fb-root"></div>
  13. <script src="http://connect.facebook.net/en_US/all.js"></script>
  14. <script>
  15. FB.init({
  16. appId : 'CHANGE TO APP ID',
  17. status : true, // check login status
  18. cookie : true, // enable cookies to allow the server to access the session
  19. xfbml : true // parse XFBML
  20. });
  21. </script>
  22.  
  23. <style type="text/css">
  24. body {
  25. width:520px;
  26. overflow:hidden;
  27. margin:0; padding:0; border:0;
  28. }
  29. </style>

Report this snippet  

You need to login to post a comment.