简体   繁体   中英

Sharing a url as an embedded inline video using ACTION_SEND in facebook

How can I embed a video url hosted in Amazon S3 , using the ACTION_SEND intent in facebook.

So far i've tried doing:

Intent shareIntent = new Intent();
shareIntent.setAction(Intent.ACTION_SEND);
shareIntent.setType("video/*");
shareIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse(url));
shareIntent.putExtra("com.facebook.platform.extra.APPLICATION_ID", myAppId);
context.startActivityForResult(Intent.createChooser(shareIntent, "Share"), 1234);

Without any success.

The Uri needs to be a file on the local device. Otherwise you should be using a link share.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM