callback function firing twice or more time


In my site have more than 500 products(with image or text) per page Like

each product have the twitter share button on it. Here i have use the" twitter card(summary-large-image)" for share the image product or text product with twitter. And i have use the “” function for callback. But the firing twice or more times. Thanks in advance.


Finally Its working for me…
1.Js Link

  1. Twitter Share Button


  1. Callback Function