Setting Autoresize iFrame in Facebook (no scroll down)

Do this script below to eliminate scrolling in iFrame tab Facebook

<script type=”text/javascript”>
window.fbAsyncInit = function() {
//Your app details here
FB.init({appId: ‘Your APP ID’, status: true, cookie: true, xfbml: true});
//Resize the iframe when needed
FB.Canvas.setAutoResize();
};
 
 
//Load the SDK asynchronously
(function() {
var e = document.createElement(‘script’); e.async = true;
e.src = document.location.protocol +
‘//connect.facebook.net/en_US/all.js’;
document.getElementById(‘fb-root’).appendChild(e);
}());
</script>
Pin It

Tags:

This entry was posted on Friday, March 16th, 2012 at 9:17 am and is filed under Facebook. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.