Iframe – Scrollbar

http://www.hyperarts.com/blog/facebook-iframe-apps-getting-rid-of-scrollbars/

<!doctype html>
<html>
<head>

<script type=”text/javascript”>
window.fbAsyncInit = function() {
FB.Canvas.setSize();
}
// Do things that will sometimes call sizeChangeCallback()
function sizeChangeCallback() {
FB.Canvas.setSize();
}
</script>
</head>

<body style=”width:517px; margin:0; padding:0; border:0;”>

<div id=”fb-root”></div>
<script>
window.fbAsyncInit = function() {
FB.init({ appId: ‘183646348343142’, status: true, cookie: true, xfbml: true });
sizeChangeCallback();
};
(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>
</body>
</html>

Advertisements

About ronjey

Web Developer

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Ronjey’s Tweets

Ronjey’s Blog Categories

%d bloggers like this: