Post a image into facebook app using app id <p>I need to post the image using the image url in my facebook app is that possible? How to post image to Facebook on button click? I have stored imageUrl in variable image and the facebook URL in the variable shareUrl, </p> <pre><code>following is the complete facebook URL : "https://www.facebook.com/dialog/feed?app_id=843228839026054&amp;caption=example.com&amp;display=popup&amp;redirect_uri="+encodeURIComponent("http://www.facebook.com/")+"&amp;name=%title%&amp;description=%desc%&amp;picture=%image%". &lt;html&gt; &lt;head&gt; &lt;script&gt; var doShare = function(title, description) { if(title &amp;&amp; description) { image="http://www.sxc.hu/assets/182945/1829445627/small-flowers-1019552-m.jpg"; /* for readability i store the url like this, above this code u can find the complete facebook url. */ shareUrl = "https://www.facebook.com/dialog/feed?"; shareUrl += "app_id=843228839026054&amp;caption=example.com&amp;display=popup&amp;"; shareUrl += "redirect_uri="+encodeURIComponent("http://www.facebook.com/"); shareUrl += "&amp;name=%title%&amp;description=%desc%&amp;picture=%image%"; var url = shareUrl.replace(/%title%/g, encodeURIComponent(title)); url = url.replace(/%desc%/g, encodeURIComponent(description)); url = url.replace(/%image%/g, encodeURIComponent(image)); var isOpen = window.open(url); if(!isOpen) { console.log('Please turn off "Block pop up" setting to proceed further.'); } } }; &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;div id='share'&gt; &lt;input type='button' onclick ='doShare("TITLE","DESCRIPTION")'&gt;Share&lt;/input&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>