Facebook comments iframe height, tried FB.Canvas.setAutoGrow () and FB.Canvas.setSize ()

I have comments on Facebook on this page .

I set the maximum comments to 5, for some reason the iframe height is set with a built-in style of 662px, regardless of whether it tries to override it with .Canvas.setSize() or .Canvas.AutoGrow() .

Sometimes after Facebook authentication, the height is adjusted to 249px (based on 2 comments). Maybe this is due to the fact that it is in a hidden div when the FB innt callback is innt ?

Any insights or work around?

+4
source share

Source: https://habr.com/ru/post/1382146/


All Articles