In the setting, it should be set to liquid. also just use setAutoGrow () should be enough.
Please note that FB.Canvas.scrollTo and FB.Canvas.setSize only work at a fixed screen height, so you can control the size of the canvas and find the user wherever you want. In fact, FB.Canvas.scrollTo does not work in Fluid mode! btw, if you plan to use a fixed height, it is useful to control the screening of the change in height as follows:
$(window).resize(function() { scrHeight = $(window).height();
source share