my code is here\[code\]var imgURL="http://localhost:8084/WebApplication6/imagefromservlet";FB.api('/me/photos', 'post', { message:' coffee', url:imgURL }, function(response){ alert('getting photo'); if (!response || response.error) { alert('Error occured'); } else {alert('OK');\[/code\]this is showing me ERROR probelm is how cam i pass servlet generated image to this "imgURL" so that it can workproperly. Servlet "imagefromservlet" generate the edited image for me.Correct this or tell me the correct way to do this ?