Friday, September 12, 2014

Adding FaceBook and other Social Networking Share Button In Page Using Asp.net

In aspx page

Add following html makup where you want to show facebook share button in your page,not only facebook in below markup their are other social sharing sites are there in which they are added to your webpages.


 <div class="addthis_toolbox addthis_default_style addthis_32x32_style">

                                        <a class="addthis_button_facebook"></a>
                                        <a class="addthis_button_linkedin"></a>
                                        <a class="addthis_button_twitter"></a>
                                        <a class="addthis_button_pinterest_share"></a>
</div>



<script type="text/javascript">    var addthis_config = { "data_track_addressbar": true };</script>
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-5253e8bc26e8bcf9"></script>



If you add above html code and run the application following screen will be appear







Notes:If you click on facebook ,facebook login page will be open,like wise other social login pages will be open if you click other icons.


No comments:

Post a Comment