title: Upload photos to Facebook wall/album from Android
body: <p>I have downloaded the Facebook Android SDK from <a href="http://git-scm.com/" rel="nofollow noreferrer">Git</a> and followed the steps as in <a href="http://developers.facebook.com/docs/mobile/android/sso/" rel="nofollow noreferrer">developers.facebook</a> and got an application ID and run some sample code. I can post status on the wall. Now I am trying to upload a photo on the wall with a description or caption, but I can't. I browsed and mostly I found the following code as answer for photo-upload.</p>
  
  <pre><code>public void postImageonWall() {
      byte[] data = null;
  
      Bitmap bi = BitmapFactory.decodeFile("/sdcard/cutedog.jpg");
      ByteArrayOutputStream baos = new ByteArrayOutputStream();
      bi.compress(Bitmap.CompressFormat.JPEG, 100, baos);
      data = baos.toByteArray();
      Bundle params = new Bundle();
      params.putString(Facebook.TOKEN, mFacebook.getAccessToken());
      params.putString("method", "photos.upload");
      params.putByteArray("picture", data);
      params.putString("caption", "So Cuuteee!!");
      AsyncFacebookRunner mAsyncRunner = new AsyncFacebookRunner(facebook);
      mAsyncRunner.request(null, params, "POST", new SampleUploadListener(), null);
  }
  </code></pre>
  
  <p>For this, I got the response as
      {"pid":"100003180585600_320223","aid":"100003180585600_43760","owner":100003180585600,"src":"http://photos-g.ak.fbcdn.net/hphotos-ak-prn1/533575_198930480222970_100003180585600_320223_995139351_s.jpg","src_big":"http://a7.sphotos.ak.fbcdn.net/hphotos-ak-prn1/s720x720/533575_198930480222970_100003180585600_320223_995139351_n.jpg","src_small":"http://photos-g.ak.fbcdn.net/hphotos-ak-prn1/533575_198930480222970_100003180585600_320223_995139351_t.jpg","link":"http://www.facebook.com/photo.php?fbid=198930480222970&amp;set=a.198930373556314.43760.100003180585600&amp;type=1","caption":"So Cuuteee!!","created":1333718624,"object_id":198930480222970}</p>
  
  <p>The photo is uploaded somewhere (it gives some URL) as a small size picture. But not on the Facebook wall or Album. By seeing Stack Overflow question <em><a href="https://stackoverflow.com/questions/8662460">Android - How to upload photo from the SD card to the Facebook wall</a></em>, I tried</p>
  
  <pre><code>    mAsyncRunner.request("me/photos", params, "POST", new SampleUploadListener(), null);
  </code></pre>
  
  <p>and</p>
  
  <pre><code>    mAsyncRunner.request("me/feed", params, "POST", new SampleUploadListener(), null);
  </code></pre>
  
  <p>For both, I got the following as response</p>
  
  <pre><code>   {"error":{"message":"Unsupported method, photos.upload","type":"Exception"}}
  </code></pre>
  
  <p>How do I upload on the wall?</p>