Android 如何将图像和文本共享到facebook应用程序

Android 如何将图像和文本共享到facebook应用程序,android,facebook,image,text,share,Android,Facebook,Image,Text,Share,我正在尝试共享图像和文本。 当我这样做的时候: Intent share = new Intent(Intent.ACTION_SEND); share.setType("image/*"); ByteArrayOutputStream bytes = new ByteArrayOutputStream(); screenshot.compress(Bitmap.CompressFormat.JPEG, 100, bytes); F

我正在尝试共享图像和文本。 当我这样做的时候:

Intent share = new Intent(Intent.ACTION_SEND);
        share.setType("image/*");
        ByteArrayOutputStream bytes = new ByteArrayOutputStream();
        screenshot.compress(Bitmap.CompressFormat.JPEG, 100, bytes);
        File f = new File(Environment.getExternalStorageDirectory()
                + File.separator + "temporary_file.jpg");
        try {
            f.createNewFile();
            FileOutputStream fo = new FileOutputStream(f);
            fo.write(bytes.toByteArray());
        } catch (IOException e) {
            e.printStackTrace();
        }
        share.putExtra(Intent.EXTRA_STREAM,
                Uri.parse("file:///sdcard/temporary_file.jpg"));
        share.putExtra(android.content.Intent.EXTRA_TEXT, textToShare);
        startActivityForResult(Intent.createChooser(share, "Share Image"),
                FROM_SHARE);
它在所有应用程序上都能很好地工作(从Gmail这样的弹出对话框中选择),除了facebook,facebook只接收图像而不接收文本。 是否有一个什么方法可以将带有图像的额外文本传递到facebook应用程序?
谢谢

FACEBOOK有一个漏洞,如果你真的想这么做,我也有同样的问题。你需要使用FACEBOOK SDK,然后使用FACEBOOK ShareDialog。

FACEBOOK有一个漏洞,如果你真的想这么做,我也有同样的问题,你需要使用FACEBOOK SDK,然后使用FACEBOOK ShareDialog。

你就是这样的人寻找?是的,但解决方案对我不起作用…你在寻找什么?是的,但解决方案对我不起作用。。。