问题
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