Created
May 1, 2011 09:21
-
-
Save miya0001/950365 to your computer and use it in GitHub Desktop.
facebookのJavaScript SDKでiframeの高さを調整してスクロールバーを回避する
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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