/ Published in: JavaScript

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 http://developers.facebook.com/docs/reference/javascript/
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
(function() { FB.Canvas.setAutoResize(); document.body.addEventListener('onresize', 'FB.Canvas.setAutoResize'); })();
Comments
