I've just implemented ShareThis's facebook share button on my site, and I can share fine, however, I would like to open the confirmation dialog in a modal (popup), instead of it opening in a new tab every time.
I had a look at ShareThis's documentation, and here it states that I just need to pass popup: 'true'
in the parameters when initializing, which I have done, but it has no effect, any time the button is pressed it opens up in a new tab.
No errors are being thrown in the console, and the share functionality works fine, am I missing something?
Here is my code:
<script type="text/javascript" src="https://ws.sharethis.com/button/buttons.js"></script>
<script type="text/javascript">
//init
stLight.options({popup:'true', publisher: "abcdef-1234-1234-1234-1234abcdef1234", doNotHash: false, doNotCopy: false, hashAddressBar: false});
//create widget
stWidget.addEntry({"service":"facebook", "element":document.getElementById('fb_share_button'), "url":"http://www.site.com/link/to/share/" , "title":"Title", "type":"hcount" });
</script>
<span st_url="<!-- url is assigned dynamically -->" class='st_facebook_hcount' displaytext='Facebook' id="fb_share_button"></span>