javascript - Facebook like box plugin not working on navigation -


i have added facebook box plugin code in web application https://developers.facebook.com/docs/plugins/like-box-for-pages

in application there 1 html body tag , dynamically adding other html div tag per requirement html. added following code in 1 of such divs.

<div class="fb-like-box" data-href="http://www.facebook.com/drsailablog" data-width="265px"      data-colorscheme="dark" data-show-faces="true" data-header="true" data-stream="false" data-show-border="true"> </div> 

i following whatever mentioned in directives use plugin i.e

        <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 = "//connect.facebook.net/en_us/all.js";          fjs.parentnode.insertbefore(js, fjs);        }(document, 'script', 'facebook-jssdk'));</script> 

now problem is, showing respective box home page while gets loaded first time, when move through navigation bar 1 menu option other, able see container wanted show box , no content there. checked calls, not sending request facebook. if refresh page sending request , able see content again. doing wrong?? have tried adding function within script tag in div still same issue there i.e loading on refresh


Comments

Popular posts from this blog

python 2.7 - Chat Solution for Mobile App -

jquery - Detect current Section with javascript -