Bild auf Facebook von SD-Karte in Android hochladen

Ich kann die Bilder nicht von der SD-Karte auf Facebook hochladen ... Ich habe den folgenden Code verwendet ... aber es gab mir keinen Fehler, aber gleichzeitig hat es die Bilder nicht hochgeladen

     byte[] data = null;
     try {
         FileInputStream fis = new FileInputStream(filepath);
         BitmapFactory.Options options = new BitmapFactory.Options();                   
            options.inSampleSize = 2; 
         Bitmap bi = BitmapFactory.decodeStream(fis);

         ByteArrayOutputStream baos = new ByteArrayOutputStream();
         bi.compress(Bitmap.CompressFormat.JPEG, 100, baos);
         data = baos.toByteArray();  
      } catch (FileNotFoundException e) { 
         e.printStackTrace();
         Log.d("onCreate", "debug error  e = " + e.toString());
      }     

         Bundle params = new Bundle(); 
         params.putString("method", "photos.upload");  
         params.putByteArray("picture", data);

Antworten auf die Frage(2)

Ihre Antwort auf die Frage