Setting the height of iframe Tabs for Facebook profile Pages

前端 未结 6 1558
深忆病人
深忆病人 2021-02-05 09:04

As we know that Facebook has introduced iframe Tabs for Pages. I have developed an application and added the tab of the application in a profile page, application tab is opened

6条回答
  •  时光说笑
    2021-02-05 09:23

    The following guide helped me through the same problem:

    http://www.hyperarts.com/blog/facebook-iframe-apps-getting-rid-of-scrollbars/

    In short, do the following:

    • Change your "IFrame Size" to "Auto-resize"

    • Load Facebook's Javascript SDK

    add the following code just before the tag of your index page:

    • Use FB.Canvas.setSize()

    Put the following code before the tag:

    
    

    That should do it, hope it helps!

提交回复
热议问题