Facebook How the button plugin does not appear in my browser

I am using Dreamweaver cs5. I am trying to put facebook as a face box on a website for the first time.

When I browse my site in a browser (and not on the server), the plugin does not show that I assume that something is wrong with my code.

Any advice is greatly appreciated.

This is my code:

<div class="float-left"> <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#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> <div class="fb-like" data-href="https://www.facebook.com/UnifiedSweden?ref=ts&amp;fref=ts" data-send="true" data-width="300" data-show-faces="true" data-font="arial"></div> 
+4
source share
1 answer

Try

 js.src = "http:/connect.facebook.net/en_US/all.js#xfbml=1"; 
0
source

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


All Articles