title: How to add link tag for image_src for facebook?
body: <p>I am trying to add link tag with rel image_src in head tag using javascript so that i can get image in facebook during sharing link of this page.</p>
  
  <pre><code>var linkTag='&lt;link rel="image_src" href="https://graph.facebook.com/picture" /&gt;';
  
  var headHTML = document.getElementsByTagName('head')[0].innerHTML;
  headHTML    += linkTag;
  document.getElementsByTagName('head')[0].innerHTML = headHTML;
  </code></pre>
  
  <p>Above code is adding link in head tag perfectly but problem is that facebook is not getting this picture when I share the link of this page.</p>
  
  <p>When i add this Link tag in head Manually then facebook perfectly picks this image but when i add this Link tag using javascript then facebook does not pick the image.</p>
  
  <p>Why is this behaving so? </p>
  
  <p>How can i fix this issue? please help.</p>