how to dynamically increse the height in facebook app

拟墨画扇 提交于 2019-11-28 02:05:19

问题


I used to FB.Arbiter.inform('setSize', { width: 760, height: 1485 }) increse the height for my facebook app.It's working yesterday, but today is not working.If you know how to dynamically increse the height in facebook app ,give some information about this.


回答1:


In Javascript, after you setup the fixed height parameter in your application settings,
you can call FB.Canvas.setSize to change the page height.

If your page height changes dynamically, you can run FB.Canvas.setDoneLoading
to check if Canvas is loaded and run FB.Canvas.setAutoGrow.

FB.Canvas.setSize({ width: 810, height: 950 });

FB.Canvas.setDoneLoading( function(response) {
    console.log(response.time_delta_ms);
    FB.Canvas.setAutoGrow();
});

FB Documentation: https://developers.facebook.com/docs/reference/javascript/FB.Canvas.setDoneLoading/




回答2:


After all, the real problem is from facebook with http*s*

You can follow the issue here:

https://developers.facebook.com/live_status

Everything else is ok, just change setAutoResize to setAutoGrow

Regards



来源:https://stackoverflow.com/questions/11323299/how-to-dynamically-increse-the-height-in-facebook-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!