title: Share data uri image on facebook
body: <p>I have HTML canvas which i export into data uri image. Now i want to share this image as easy as possible (without creating FB apps and authentication tokens) on Facebook time line by clicking on custom link on my page.</p>
  
  <p>I have tried something like this:</p>
  
  <p>Image generation:</p>
  
  <pre><code>var dataUrl = context.canvas.toDataURL("image/jpeg");
  </code></pre>
  
  <p>Sharing link (<code>onClick</code>):</p>
  
  <pre><code>window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(dataUrl)+'&amp;t='+encodeURIComponent('Some text'),'sharer','toolbar=0,status=0,width=626,height=436');
  </code></pre>
  
  <p>When i click the link in Safari I got <code>Safari cannot open page ... (NSPOSIXErrorDomain:100)</code></p>
  
  <p>How can I easily share data uri image via Facebook sharer URL (or some other way)?</p>
  
  <p>Thanks for answers!</p>