How to show FaceBook Like Button in ASP.Net Website

Last Reply on May 21, 2013 10:55 PM By Mudassar

Posted on May 21, 2013 09:50 PM

hi

i have made a web form in whcih i want to show pop up of social networking sited if user click on that particular icon it should like that page in facebook

i have used this code

<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_floating_style addthis_32x32_style">
<a class="addthis_button_facebook"></a>
<a class="addthis_button_twitter"></a>
<a class="addthis_button_google_plusone_share"></a>
<a class="addthis_button_linkedin"></a>
</div>
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=undefined"></script>
<!-- AddThis Button END -->

but when i run the  web page on clicking on that icon it goes to facebook and share this link

 

 

Posted on May 21, 2013 10:55 PM

You need to use a different Add this button. That has Like button

https://www.addthis.com/get/sharing?where=website&type=bm&bm=tb7#.UZxATpzP3Zs

Also if user is not logged in he will be sent to FaceBook first