Before I attempt to re-invent the wheel, I figured that I’d ask the experts.
I’m looking for a multi-social bookmark button that allows me to allow people to recommend particular pages of my web site to their favorite social network/ page reader/ seach engine.
Constraints (and reasons why I don’t want to use ShareThis)
The link posted has to be the actual link, not a shortened link. People’s lists get shared. I want the link to show my domain.
The script should be served from my own server. I am suspicious of web pages that call scripts from another domain, and I don’t want to do that from my domain.
There should be NO contact between the client and any of the social sites until they click on a social site icon.
Script should be well documented internally at least as source — compacted uncommented short variable name scripts need not apply.
Script is embedded in a static web page, not a CMS.
Koehl blog had a series about this in 2009, then the topic faded. At that point he recomended iBegin, which subsequently became Share, and ran from a site called Enthropia.com. Checking that site, there is a demo posted that is clearly out of date.
At one point AddToAny would allow hosting on your own server, but they still were using the script to track every user’s web usage, claiming a suitably anonymity. Right.
Another one, OpenLike has a dead webserver.
A search on SourceForge has come up empty. (I tried searching for the names like AddThis, AddToAny, Sharethis, followed by searches to stumbleupon, reddit, digg, google plus. Nothing relevant.)
At this point I’m faced with having to read and understand each target site’s api so I can write a local script that does the right thing. Not trivial.
In many ways the ideal would be:
* An array of icons in simlarly size and style
* that each opened a web page onto the destination page (eg. FB, G+, StumbleUpon..)
* with URL parameters appropriate to that page.
But I don’t think that most of these sites have such a simple interface.
Answer is simple. The ideal above works, so it’s mostly a matter of finding the right code and icons. The key item in my search was ‘share by url’
This is from another post on this site:
http://www.facebook.com/sharer.php?u=http://example.com http://twitter.com/share?url=http://example.com&text=Description https://plusone.google.com/_/+1/confirm?hl=en&url=http://example.com
<div class="social-button-container"> <div class="share_top_text">Share this post on:</div> <div class="SocialCustomMenu"> <a class="scmTwitter" href="http://twitter.com/home/?status=<?php the_title();?> - <?php echo wp_get_shortlink();?> via @kenmata "title="Tweet this!">Twitter</a> <a class="scmFacebook" href="http://www.facebook.com/sharer.php?u=<?php the_permalink();?> - <?php echo wp_get_shortlink();?> "title="Share on Facebook!">Facebook</a> <a class="scmGoogleplus" href="https://plus.google.com/share?url=<?php the_permalink();?> - <?php echo wp_get_shortlink();?> "title="Share on Google +!">Google +</a> <a class="scmPinterest" href="http://pinterest.com/pin/create/button/?url=<?php the_permalink();?> - <?php echo wp_get_shortlink();?> "title="Share on Pinterest!">Pinterest</a></a> </div> </div>
While these are nominally wordpress they should work with some modification with any web server using php. Or they can easily be converted to use template toolkit
Less social share links is another example of very clean looking HTML.
You miss some functionality with this:
- No counters. Of course you could implement counters locally.
- For Facebook the people don’t get to see which of their friends liked it. Not a big motivator for me.
- At this point finding the codes for each service is an obstacle.
- If someone has already consolidated a share-by-url list, please feel free to post here.
I have NOT verified all of the following.
- TITLE is the share title. Some services will accept it quoted. Others must be in URL format: e.g. spaces are %20
URL must be fully qualified absolute.
Not clear on the distiction between google+ and plusone.
google (share on Google+ ) Documentation at https://developers.google.com/+/plugins/share
google recommend on plusone.
Anyone saw the news that AddThis is using a new form of tracking cookies called Fingerprint Canvas that stays forever?
I think we need some open source alternatives like http://expando.github.io/
additions to @Sherwood Botsford’s list
More sources for more links
Two very comphrensive lists:
ss.js on github gives this pinterest share – which works for anything never pinned before, no script though
netvibes custom sharing with Buffer, Baidu, hootsuite and more