How to hide url from the tweet body when sharing on twitter through URL?

Viewed 3893

I'm sharing a page url on twitter using this anchor tag:

<a href="https://twitter.com/intent/tweet?url=<?php echo $url; ?>" target="_blank"></a>

and it works perfectly fine and displays preview of the URL in the tweet but I want to hide the URL present in the tweet body. See the attached image:

hide

How can I achieve this ?

Thanks in advance.

1 Answers

When creating a tweet, the URL will always be visible. However, as soon as the tweet is posted the URL is hidden automatically and only the preview of the page remains.

I tested this myself, and found this answer on: reddit.com/r/Twitter/comments

Related