Here is my code that is installed on the site ... **** - this is normal, everything is fine there .... everything worked fine, but today I noticed that it works on the main page, but not on the other pages.

<div class="fb-like-box" data-href="http://www.facebook.com/******" data-width="265" data-height="362" data-show-faces="true" data-stream="false" data-header="false" data-border-color="#ffffff"></div> <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/ru_RU/all.js#xfbml=1&appId=********"; fjs.parentNode.insertBefore(js, fjs); }(document, \'script\', \'facebook-jssdk\'));</script> 

Very strange, there are no errors in the console, only there are warnings. Like these ones:

 The "fb-root" div has not been created, auto-creating all.js:56 FB.getLoginStatus() called before calling FB.init(). 

Tell me pliz, because of what could it all spoil?

  • Well, apparently you need to pull fb.init first, you are here: developers.facebook.com/docs/facebook-login/login-flow-for-web - jmu
  • Thanks, I corrected, but it’s not working the way I wanted, I just wanted to throw this plugin a second after the page was loaded using Ajax. But as soon as I inserted it cleanly into the code, it immediately worked. - TF03

0