Posted By

bonalepo on 01/28/13


Tagged

javascript facebook


Versions (?)

Facebook tab application: expand iframe to max


 / Published in: JavaScript
 

removes scrollbars and expand to content height.

  1. <!-- FACEBOOK REMOVE SCROLL ========================================= -->
  2.  
  3. <script type="text/javascript" src="https://connect.facebook.net/en_US/all.js#xfbml=1"></script>
  4.  
  5. <script type="text/javascript">
  6.  
  7. window.fbAsyncInit = function() {
  8. FB.init({
  9. appId: 'APP-ID',
  10. });
  11. FB.Canvas.setAutoGrow();
  12. }
  13.  
  14. </script>
  15.  
  16. <style>
  17. body{overflow:hidden;}
  18. </style>

Report this snippet  

You need to login to post a comment.