0
votes

I am trying to use AddThis for a Facebook and Twitter share button like this:

<div class="addthis_toolbox addthis_default_style addthis_16x16_style">
<a class="addthis_button_facebook"></a>
<a class="addthis_button_twitter"></a>
...

<script type="text/javascript">
  var addthis_config = addthis_config||{};
  addthis_config.data_track_addressbar = false;
  addthis_config.data_track_clickback = false;
</script>
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-516a8c1a380e068d"></script>

(of course i also include the AddThis JavaScript.)

The Twitter button opens a popup but the Facebook button opens in a new browser tab. Why does this happen? I need the Facebook share function to open in a popup too. A fullscreen tab just looks wrong and ugly.

1
Well, clearly the difference is in the Javascript so the fact that you haven't posted it is unhelpful! - Elliott
I have added it now but it just is the Addthis include line. I don't do anything special there. - horace
Should it not be src="http://..." in that second script tag? - Elliott
No, this seems to be a standard JavaScript practice to have http or https autoselected? - horace
Oh right, well I learned something new today :) - Elliott

1 Answers