panzi / SocialSharePrivacy

Fork of "jquery.socialshareprivacy.js | 2 Klicks fuer mehr Datenschutz" http://www.heise.de/extras/socialshareprivacy/ that is extensible.
http://panzi.github.com/SocialSharePrivacy/
678 stars 81 forks source link

Showing counts before the first click #35

Closed crazymonk closed 10 years ago

crazymonk commented 10 years ago

I'm wondering if anyone has any thoughts on the feasibility of adding counts to buttons before the first click, if the 3rd party API supports that functionality. It would add an additional API dependency but could lead to higher interactivity as the counts are often a motivator. Has this feature been explored by anyone?

Thanks, -marco

panzi commented 10 years ago

This can't be done, because it would need the browser to contact Facebook/Twitter/etc., which is exactly what this script is trying to avoid (and what the original buttons do).

crazymonk commented 10 years ago

But couldn't it be done with a server-side API call? It wouldn't allow the 3rd party to do any tracking...

panzi commented 10 years ago

Maybe, but this is a JavaScript module that can be used everywhere, even with static files. Writing a server component is not the scope of this project and would require certain dependencies. If someone would like to use this and there's no server component for the framework they're using (which would be likely), they would need to implement their own. I think implementing the button is easy in comparison.

crazymonk commented 10 years ago

True enough. It does make it a different beast. Thanks for your thoughts.