title: Facebook Sharing for SPA without server side support (hosted on a CDN)
body: <blockquote>
    <p>I have a static website, an <b>SPA hosted on a CDN</b> -  basically a
    singe index.html whose content area is updated based on the hash in
    the url. I need to find a way for FB sharer to show title and
    description of the currently loaded main content in the SPA<br/></p>
  </blockquote>
  
  <p>Facebook sharing, in simple words,  scrapes a page to find og meta tags and caches them. This info is then displayed when we try sharing the url/page. </p>
  
  <pre><code>&lt;meta property="og:url"         content="http://www.siteurl.com" /&gt; 
  &lt;meta property="og:title"       content="My Site" /&gt; 
  &lt;meta property="og:image"       content="Site-img.jpg" /&gt; 
  &lt;meta property="og:description" content="Description" /&gt;
  </code></pre>
  
  <p>I tried setting the meta tags using javascript but eventually realized when scraping, Javascript is not executed, therefore modifying the meta tags using javascript is of no use.
  The other solution would have been setting the og tags from the backend before the page loads but being hosted on the CDN there is no server side support to do that.</p>
  
  <p>Thoughts on how I could work this out?</p>