title: Use javascript to set the image shown by Facebook sharer
body: <p>I'm trying to dynamically set the thumbnail shown when sharing to Facebook using javascript. I tried adding the meta tag "og:image" to the page (it's a JSP) and that works, but what I want to do now is to replace such image with another one dynamically loaded by javascript.</p>
  
  <p>Basically, the page is calling an API upon loading, using javascript, and retrieves a list of images. I want to use one of those as the thumbnail.</p>
  
  <p>I tried using javascript to replace the content of the meta tag, but Facebook doesn't seem to care abou t it (it does change if I check with my browser).</p>
  
  <p>Is it possible to do this?</p>
  
  <p>Thanks in advance!</p>