title: How do I make my own simple social media buttons that grab the current URL automatically?
body: <p>Facebook, Google+, and Twitter (I've not checked or tested any other platform, but if they provide a "share URL" then they should work as well) all provide pre-built JS buttons that, for many different reasons, a lot of people do not want to use.  Whether it's because you want to use your own custom icon, or you don't like how much code they use, or you don't like how they function, or any other reason.</p>
  
  <p>These social media platforms also, however, provide a simple alternative that allows you to use your own custom icon and are very very simple in how they work on the web developer side. (The Facebook documentation on their developer page does not reflect the method that I'll be using, as they no longer "support" the old "share URL".  It does, however, still work for now, and the principle remains the same if you wish to use their new manual "share URL").</p>
  
  <p>The way they work are quite simple in principle: They provide a URL with syntax on the end that allows you to manually type the URL that you would like to share.  The problem with this solution is that you would have to manually type in the URL of each page every time.  And if you are using PHP includes or SSI for your share button (which I am doing), then it's not only not feasible, but it's impossible because you only have one instance of the share button that exists.</p>
  
  <p>So how would one be able to make their own simple social media sharing buttons that will automatically grab the current page's URL?</p>