I’m developing an Android app, and want to implement sharing Youtube links via twitter.
I want to post a tweet showing player card with shared video, containing some text description, but no visible URL in the message body (as URL is redundant when player card is visible). For now, my tweets are posted correctly and player card is visible, but URL is always appended to the message. I’ve tried sending Android Intent to Twitter App and using Fabric, in both cases the URL is always appended (code below).
using Android Intent:
String tweetUrl = String.format("https://twitter.com/intent/tweet?text=%s&url=%s", urlEncode(description), urlEncode(url)); Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(tweetUrl)); startActivity(shareIntent);
TweetComposer.Builder builder = new TweetComposer.Builder(parentActivity)
Is there a way to stop URL being appended to the message (or at least to make it invisible), but the link still being shared (and player card visible) ?