Intent i = new Intent(Intent.ACTION_SEND);
i.setType("image/jpeg");
Uri uri = Uri.parse("android.resource://my package name/"+value(passing value of image));
i.putExtra(Intent.EXTRA_STREAM, uri);
PackageInfo info=pm.getPackageInfo("com.facebook.katana", PackageManager.GET_META_DATA);
i.setPackage("com.facebook.katana");
startActivity(Intent.createChooser(i, "Share with"));
Facebook 打开但没有图像,它是空的。