Skip to content

Instantly share code, notes, and snippets.

@miya0001
Created May 1, 2011 09:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miya0001/950365 to your computer and use it in GitHub Desktop.
Save miya0001/950365 to your computer and use it in GitHub Desktop.
facebookのJavaScript SDKでiframeの高さを調整してスクロールバーを回避する
<script type="text/javascript"
src="http://connect.facebook.net/en_US/all.js"></script>
<script type="text/JavaScript">
FB.init({
appId: 'Your App ID', // edit it
status: true,
cookie: true,
xfbml: true,
logging: true
});
window.fbAsyncInit = function() {
FB.Canvas.setAutoResize();
}
jQuery(document).ready(function(){
// hide scroll bar
FB.Canvas.setAutoResize();
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment