I am using
<div class="fb-share-button" data-href="" data-layout="button_count" oncklick=""></div>
to have Facebook sharing on my page.
Now I am wondering why it is not possible to add any events to fire a function if the share button was clicked like this:
$(".fb-share-button").click(function(event){
//do stuff
});
Is there any way i can achieve to add a function to the click? I want to be able to use a ajax callback to store into my database that the button was clicked, but i can not use an app id as it is a site for different customers.
Anyone with a solution?