title: Facebook SDK 3.0 upload picture to a facebook page (not in album)
body: <p>Hi everyone I am a noob at android development I am trying to implement a feature that will allow the user to post a message on a Facebook page with an option to upload a picture/image from there device SD-card.</p>
  
  <p>I am using Facebook sdk 3.0</p>
  
  <p>I have managed to make it work but not on the Facebook page wall, rather via the users profile timeline.</p>
  
  <p>Thanks in advance.</p>
  
  <p>*<strong><em>EDIT</em>*</strong></p>
  
  <pre><code>case REQUEST_PICK_IMAGE:
              if (resultCode == RESULT_OK) {
                  imageUri = intent.getData();
  
                  AsyncFacebookRunner mAsyncFbRunner1 = new AsyncFacebookRunner(mFacebook);
                  Log.d(TAG, imageUri.toString() + " " + imageUri.getPath());
                  Bundle params = new Bundle();
                  try {
                      in = new FileInputStream(getRealPathFromURI(imageUri));
                      buf = new BufferedInputStream(in);
                      byte[] bMapArray= new byte[buf.available()];
                      buf.read(bMapArray);
                      params.putByteArray("picture", bMapArray);
                  } catch (IOException e) {
                      e.printStackTrace();
                  }
                  params.putString("method", "photos.upload");
                  params.putString("caption", "sample post via gallery");
                  mAsyncFbRunner1.request("PAGE_ID" + "/feed", params, "POST", new PhotoUploadListener(), null);
              }
              break;
  </code></pre>