Skip to content

Instantly share code, notes, and snippets.

@VinnyFonseca
Created June 18, 2013 14:34
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 VinnyFonseca/5805865 to your computer and use it in GitHub Desktop.
Save VinnyFonseca/5805865 to your computer and use it in GitHub Desktop.
Facebook Canvas Auto Height
<div id="fb-root"></div>
<script src="https://connect.facebook.net/en_US/all.js"></script>
<script type="text/javascript">
var appId = 'XXXXXXXXXXXXX';
window.fbAsyncInit = function() {
FB.init({
appId: appId,
status: true,
cookie: true,
xfbml: true
});
};
window.onload = function() {
FB.Canvas.setAutoGrow(true);
FB.Canvas.setAutoGrow(false);
};
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment