This method is only enabled when Canvas Height is set to "Settable (Default: 800px)" in the App Dashboard.
FB.Canvas.scrollTo() causes the Facebook Canvas to scroll to a specific location of your app. This should be used in conjunction with FB.Canvas.setSize() and FB.Canvas.setAutoGrow().
To scroll to the top of the page you could use the following code:
This function requires a
params argument, which is an object with two properties:
Horizontal scroll position.
Vertical scroll position.