title: URL Error posting image to facebook
body: <p>I want to send a image taken by the user to a Facebook share dialog post. 
  The image taken from device camera h is set to a imageview and also saved to the device external storage/ SD card.</p>
  
  <p>The facebook share SDK takes a URL for a image in the .setPicture(URL) method.</p>
  
  <p>So my question is it possible to get the URL of a image from either the bitmap in the imageview or the image stored in the deice?</p>
  
  <p>Or is the URL specifically for a network resource?
  Cheers
  ciaran</p>
  
  <p>EDIT: Have tried adding the path to sd card/external storage of device as a string to the </p>
  
  <pre><code>setLink(URL string) method:
  setLink("/storage/emulated/0/dive_photos/image2462.png")
  </code></pre>
  
  <p>but image does not load, exceptions thrown in Logcat is ....</p>
  
  <blockquote>
    <p>03-02 00:06:04.280: E/Activity(3055): Error:
    com.facebook.FacebookException: Error publishing message Share preview
    could not be fetched </p>
    
    <p>(#100)picture url not properly formed</p>
  </blockquote>
  
  <p>Treied removing the first "/" by getting substring(1) and passing <code>setLink("storage/emulated/0/dive_photos/image2462.png")</code>
  but same error....</p>
  
  <p>Although a network resource url works fine:</p>
  
  <pre><code>setLink("http://www.mooneycallans.com/images/Gallery/image51.jpg")
  </code></pre>
  
  <p>EDIT:
  Also tried creating a file://imagePathString URL some progress made, the share preview will show the image however will still not post get the same (#100)  Pictire URL not properly formed....</p>
  
  <pre><code>    File imagePathFile = new File(savedImagePath);
  
                          try{
                           userImageURL = imagePathFile.toURI().toURL();
  
  
                          Log.d(TAG, "File URL for saved image on FB: " + userImageURL);
                          }catch(MalformedURLException ex){
                              //ex.printStackTrace();
                          }
                           userImageURLString = userImageURL.toString();
  
          setPicture(userImageURLString)
  
  //userImageURLString = "file:/storage/emulated/0/dive_photos/image4373.png";
  </code></pre>
  
  <p>My head is wrecked:(</p>