We are excited to announce a new button that enables people to start a Direct Message right from a website. Direct Messages are the private side of Twitter, and the message button makes it easy to start a private conversation with you. It works best when your account settings allow you to receive Direct Messages from anyone, whether or not they follow you. The button is available at publish.twitter.com along with all of our other buttons - scroll down the page below the input box, and select the Twitter Buttons option.
In order to obtain a button that works correctly we require two pieces of information:
- Your username, which can either come in the form of “@username” or “https://twitter.com/username”
- Your user ID, which is a numerical identifier that can be found at https://twitter.com/settings/your_twitter_data
Once you put these two pieces of information into the configurator correctly you’ll get the code to implement the button on your web properties.
If you’re having issues try these things:
- Make sure if you’re using your username for field 1 that you have the @ in front
- Make sure the user ID you input is the user ID for the username in field 1
*note: we are not validating the numeric user ID to a username, so if they do not match you will not see an error, but the button will not work correctly.
Please let us know if you have any questions!