Posted By

depiction on 09/10/11


Tagged

facebook


Versions (?)

Facebook iFrame Auto Height


 / Published in: JavaScript
 

URL: http://forum.developers.facebook.net/viewtopic.php?id=91458

Facebook auto-height code.

  1. <div id="fb-root"></div>
  2. <script src="https://connect.facebook.net/en_US/all.js" type="text/javascript"></script>
  3. <script type="text/javascript">
  4. FB.init({
  5. appId : 'APP ID GOES HERE',
  6. status : true, // check login status
  7. cookie : true, // enable cookies to allow the server to access the session
  8. xfbml : false // parse XFBML
  9. });
  10. FB.Canvas.setAutoGrow();
  11. </script>
  12.  
  13.  
  14.  
  15. [CODING HERE]
  16.  
  17.  
  18. <script type="text/javascript">
  19. FB.Canvas.setAutoGrow( 100 );
  20. </script>
  21.  
  22. </body>

Report this snippet  

You need to login to post a comment.