I am trying to adjust the height of my Facebook Canvas app after dynamic update of the page content. One is supposed to do this with FB.Canvas.setSize()
however it only increases the hei开发者_开发技巧ght. The same thing with .setAutoResize()
. I have posted a workaround on SO, but it is too blinky. Can one improve it somehow?
How to resize Facebook Canvas app (iFrame) correctly?
You will need to use the new FB.Canvas.setAutoGrow as the .setAutoResize() is deprecated. See https://developers.facebook.com/docs/reference/javascript/FB.Canvas.setAutoGrow/
精彩评论