Facebook tab application: expand iframe to max


/ Published in: JavaScript
Save to your folder(s)

removes scrollbars and expand to content height.


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.