Hackernoon logoHow to Put a "Send us a Private Message" Button in a Tweet by@nimaowji

How to Put a "Send us a Private Message" Button in a Tweet

image
Nima Owji Hacker Noon profile picture

@nimaowjiNima Owji

a Full-Stack web developer using asp.net. C#, js, win forms

Today, I want to show you how to put a "Send us a private message" button in a tweet. Something like this:

image

Let's start!

Finding Twitter ID

First of all, you should find your Twitter ID. You can get your ID from many websites. I found a website called "TweeterID". Click here to open it.

You should give your Twitter handle to it and it will convert your Twitter handle to Twitter ID!

image

If this website isn't available, you can simply search "Find Twitter ID" and find another website. When you got your ID, copy it!

Creating the button

Okay, now you should compose a new tweet. In your tweet, you can write anything. After that, you should paste this link into your tweet! (This link is that button).

https://twitter.com/messages/compose?text=[Your Message]&recipient_id=[Your Twitter ID]

You should assign a message to "text". When people click on this button, this message will appear in the textbox!

You should also assign your Twitter ID to "recipient_id".

Finished!

Finished! You can tweet it. It will convert to a button automatically!

I hope you liked this! Don't forget to like this article. If you liked it, please share it in a tweet and mention me too! My name is Nima Owji. I am a 14-year-old programmer. Thanks.

Special thanks to Chris Messina!

Tags

Join Hacker Noon

Create your free account to unlock your custom reading experience.