The easiest way to share on Facebook, Twitter and Email?

On a news site, a client wants me to implement a way to share the story (just a link, really) via email, facebook and twitter.

I could write code for each sharing method, but it seems very likely that there will be some kind of service or library that shares the current url into different services. Perhaps even with some tracking of what is common - for statistical purposes.

Is there such a service or library?

+2


source to share


4 answers


Check AddThis.com . It supports many services. I look like this preview.



+7


source


AddToAny is a similar service already offered by AddThis . Can't give you the pros and cons in between.



+2


source


More options.

Sharethis

Gigya wildfire

+2


source


The easiest way is to just provide the url which then sent the user to facebook. In other words, forget Addthis.come and use these:

facebook:

<a href="http://www.facebook.com/sharer.php?u=[url to share]&t=[title of content]">link or image</a>

      

Twitter:

<a href="http://www.twitter.com/share?url=[url to share]>">link or image</a>

      

Good luck.

+1


source







All Articles