javascript - Facebook Comments iFrame height limited when using HTML file not URL -


i'm loading facebook comment page local file, not url.

(reason: it's mobile app & need template file creating multiple comment pages)

the fb comments load iframe same fixed height limits view first comment only. it's browser & platform independent problem many tests i've ran.

if add html file web site , access url works perfectly.

can shed light on why iframe height fb comments fixed due source being local file , not fixed when url?

<html>   <head>     <title>public comments</title>   </head>   <body>     <div id="fb-root"></div>     <script>(function(d, s, id) {              var js, fjs = d.getelementsbytagname(s)[0];              if (d.getelementbyid(id)) return;              js = d.createelement(s); js.id = id;              js.src = "http://connect.facebook.net/en_gb/all.js#xfbml=1&appid=xxxxxxxxxxxx";              fjs.parentnode.insertbefore(js, fjs);              }(document, 'script', 'facebook-jssdk'));</script>     <div class="fb-comments" data-href="http://my-web-site.help/dir/#alias" " data-num-posts="10" data-mobile="true"></div>   </body> </html> 

can shed light on why iframe height fb comments fixed due source being local file , not fixed when url?

most because cross-domain communication js sdk has able adjust height of iframe element in site not work in such scenario.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -