I want to share an Image with my app link as an Instagram story when the user clicks on that link it's should redirect to my app. from Spotify app it's possible but I'm not able to do this. from the below code I can show the only image but I need to show an image with URL
Uri backgroundAssetUri = Uri.parse(file);
// Instantiate implicit intent with ADD_TO_STORY action and background asset
Intent intent = new Intent("com.instagram.share.ADD_TO_STORY");
intent.setDataAndType(backgroundAssetUri, MEDIA_TYPE_JPEG);
intent.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
// Instantiate activity and verify it will resolve implicit intent
Activity activity = getActivity();
if (activity.getPackageManager().resolveActivity(intent, 0) != null) {
activity.startActivityForResult(intent, 0);
}