Search code examples
jqueryasp.net-mvc-3facebook-social-pluginsaddthis

How to Share an image in social share using jquery


i am trying to implement the Social Share Button In My Website,There i want to Share dynamic Image based on the user selection.

I using the Addthis Plugin,If there any other option to image sharing

My code:

 <script src="@Url.Content("~/Scripts/ShopifyScripts/addthis_widget.js")"></script>

         <div class="addthis_toolbox addthis_default_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_pinterest_share"></a>
             <a class='addthis_button_tumblr'></a>
             <a class="addthis_button_email"></a>
             @* <a class="addthis_button_compact"></a>
         <a class="addthis_counter addthis_bubble_style"></a>
         </div>

Please help me to find out the solution.

Thanks advance,


Solution

  • So as i understand you need to change url dynamically so yes you can do it with addthis More info

    Generally you need to set attribute addthis:url and share this will know which url you are sharing