Give each of your "common" buttons a different identifier and change other parameters (different links, title and image) for each element.
For instance:
<script type="text/javascript"> $(document).ready(function(){ $('#share_button1').click(function(e){ e.preventDefault(); FB.ui( { method: 'feed', name: "{{ user_name }} FOF", link: "https://mysite.com/uploader/{{current_fof}}/share_fof/", picture: imgsArray[0].src, caption: window.location.href, description: 'This FOF was taken by {{ user_name }}', message: '' }); }); $('#share_button2').click(function(e){ e.preventDefault(); FB.ui( { method: 'feed', name: "{{ user_name }} FOF", link: "https://mysite.com/uploader/{{current_fof}}/share_fof/", picture: imgsArray[0].src, caption: window.location.href, description: 'This FOF was taken by {{ user_name }}', message: '' }); }); $('#share_button3').click(function(e){ e.preventDefault(); FB.ui( { method: 'feed', name: "{{ user_name }} FOF", link: "https://mysite.com/uploader/{{current_fof}}/share_fof/", picture: imgsArray[0].src, caption: window.location.href, description: 'This FOF was taken by {{ user_name }}', message: '' }); }); }); </script>
Buttons can be:
<div class="share"> <img src = "{{ STATIC_URL }}images/share_facebook.png" id="share_button1" type='button_count'></div> <div class="share"> <img src = "{{ STATIC_URL }}images/share_facebook.png" id="share_button2" type='button_count'></div> <div class="share"> <img src = "{{ STATIC_URL }}images/share_facebook.png" id="share_button3" type='button_count'></div>
source share