title: How to share Image-Url to Facebook, twitter and Instagram in React JS
body: <p>I have a page where the User can upload their image and edit it by using one Api. </p>
  
  <p>Now using the image recieved, in the url format, needs to be shared in social media like Facebook, Twitter and Instagram.</p>
  
  <p>Following are the Url used for social media redirect:</p>
  
  <p>Facebook -<a href="https://www.facebook.com/sharer.php?u=" rel="noreferrer">https://www.facebook.com/sharer.php?u=</a>${window.location.href}?imageurl=${imageUrl}
  Twitter- <a href="https://twitter.com/intent/tweet?url=" rel="noreferrer">https://twitter.com/intent/tweet?url=</a>${window.location.href}?imageurl=${imageUrl}
  Instagram- Yet to find one</p>
  
  <p>Things Tried:
  Tried to add {imageUrl} which is stored in state to meta tags dynamically using createElement and setAttribute in componentDidMount, which did not update this image in facebook but able to add this image in og:image in head->meta tags.
  Kindly provide me with some solution. It would be a great help.</p>
  
  <pre><code>           &lt;a
              data-pgaction-redirection="0"
              target="_blank"
              rel="noopener noreferrer"
              title={title}
              href=`{https://www.facebook.com/sharer.php?u=${window.location.href}? 
              imageurl=${this.state.imageUrl}}`
            &gt;
             Facebook
            &lt;/a&gt;
  </code></pre>