Return to Snippet

Revision: 47216
at June 2, 2011 22:58 by SFLWebDev

Initial Code
(function() {
	document.body.addEventListener('onresize', 'FB.Canvas.setAutoResize');

Initial URL

Initial Description
This script will handle any vertical resizing issues with a Facebook IFrame tab application, such as the resizing of the frame when elements expand, such as a Facebook Comments plugin. It uses the "FB.Canvas.setAutoResize" method from the Facebook JavaScript SDK, so that must be initialized with a Facebook Application ID; for more information, see

Initial Title
Facebook IFrame Tab Resize Fix

Initial Tags

Initial Language