How to Include Social Media Buttons and Preserve Privacy

Want to put social media buttons on your site? Also want to help preserve the privacy of users that don't share?

Below are example links for sharing with Facebook, Twitter, LinkedIn, and Google+. You can wrap a social media button in one of the links, and help your users share your content.

<!DOCTYPE html>
<html>
<head>
  <title>Social Share Links</title>
</head>
<body>
  <a href="https://www.facebook.com/sharer/sharer.php?u=https://simpletutorials.com/c/1289/Simple+VIM+Reference" target="_blank">
  Share on Facebook
  </a>

  <br>
  <a href="https://twitter.com/intent/tweet?url=http://www.simpletutorials.com/&amp;text=SimpleTutorials&amp;via=jasonprogrammer" 
  target="_blank">
  Tweet
  </a>

  <br>
  <a href="https://www.linkedin.com/cws/share?url=https://simpletutorials.com/c/1289/Simple+VIM+Reference" target="_blank">
  LinkedIn
  </a>

  <br>
  <a href="https://plus.google.com/share?url=https://simpletutorials.com/c/1289/Simple+VIM+Reference"
   target="_blank">
  Google+
  </a>
</body>
</html>

Comments

Leave a comment

What color are green eyes? (spam prevention)
Submit
Code under MIT License unless otherwise indicated.
© 2020, Downranked, LLC.