facebook javascript SDK: FB.Canvas.setAutoResize iFrame not working?

前端 未结 3 403
灰色年华
灰色年华 2021-02-02 01:40

we built a facebook application with ruby/rails and facebooker (iframe application) and are currently stuck with the FB.Canvas.setAutoResize which seems to fail in some cases. u

3条回答
  •  时光取名叫无心
    2021-02-02 02:36

    Some key things to make sure are set in the application settings:

    1. Canvas Settings -> Render Method = iFrame
    2. Canvas Settings -> iFrame Size = Resizable
    3. Migrations -> new SDK = Enabled

    Next adjust your code by adding a timeout (250 seems to work best, but you may want to experiment futther). I've tested this in FF3.6 and IE7+. In IE there is a momentary flash of the vertical scrollbar which I'm still trying to fix.

提交回复
热议问题