Skip to content

Instantly share code, notes, and snippets.

@b20n
Created September 29, 2011 22:19
Show Gist options
  • Save b20n/1252101 to your computer and use it in GitHub Desktop.
Save b20n/1252101 to your computer and use it in GitHub Desktop.
Sharing to multiple sites, cleanly. Note the change from href() to trigger().
<html>
<head>
<script src="http://static.meteorsolutions.com/metsol.js"></script>
<script>
meteor.tracking.track("40f6fffb-bbc6-4e42-9dca-93f32b3d6d5b", {"url_storage_source" : "hash", "safe_keys":["fbad"]});
meteor.tracking.track("5dc6cf8d-f7dc-403c-90e5-e48cd8fe38fb", {"url_storage_source" : "hash", "safe_keys":["fbid"], "query_string_key":"fbad"});
</script>
</head>
<body>
<script src="http://static.meteorsolutions.com/metshare-uncompressed.js"></script>
<script>
//meteor.sharing.superbar.configure({"application_id":"40f6fffb-bbc6-4e42-9dca-93f32b3d6d5b","id": 1, "url": "http://facebook.com"}, "bar1");
//meteor.sharing.superbar.configure({"application_id":"5dc6cf8d-f7dc-403c-90e5-e48cd8fe38fb","id": 4, "url": "http://google.com"}, "bar2");
meteor.sharing.superbar.init({"application_id":"40f6fffb-bbc6-4e42-9dca-93f32b3d6d5b","id": 1, "url": "http://facebook.com"});
meteor.sharing.superbar.init({"application_id":"5dc6cf8d-f7dc-403c-90e5-e48cd8fe38fb","id": 4, "url": "http://google.com"});
</script>
<!-- <a onclick="meteor.sharing.superbar.trigger('twitter', {'bar_id':'bar1'});return false;">twitter</a> -->
<!-- <a onclick="meteor.sharing.superbar.trigger('reddit', {'bar_id':'bar2'});return false;">reddit</a> -->
</body>
</html>
@bradleyy
Copy link

These superbars would be sharing facebook and google, respectively?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment