Advertisement
supplementzerojr

6

Sep 5th, 2014
2,627
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. AutoGrow() on facebook page tab - Vertical only
  2. <script>
  3. window.fbAsyncInit = function () {
  4.     FB.init({appId: '599920186736332', status: true, cookie: true,
  5.          xfbml: true});
  6.         FB.Canvas.setAutoGrow(); //set size according to iframe content size          
  7.     };
  8.  
  9.     (function () {
  10.  
  11.         var e = document.createElement('script');
  12.  
  13.         e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
  14.  
  15.         e.async = true;
  16.  
  17.         document.getElementById('fb-root').appendChild(e);
  18.  
  19.     } ());
  20. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement