Here I work with asp.net web application, I use 2 facebook plugins on my web page.
- Facebook like
- Share on Facebook
To share facebook:
<a name="fb_share" type="button" share_url="*******"></a> <script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"> </script>
For facebook like:
<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 id="fb-root"></div> <div class="fb-like" data-href="********" data-send="false" data-layout="button_count" data-width="10" data-show-faces="false" style="width:45px; height:20px;"></div>
Case 1. The above code works fine when I use one code.
Case 2: when I use facebook as a plugin for some time, it disappeared from the page.
Thanks in advance...
source share