The Message button is a small button to help your customers easily send a Direct Message to you on Twitter. Allow your customers to contact you to ask questions and get support from right on your website.
Clicking the button will link the user to the Direct Message composer, pre-populated with the values you define in the button markup.
How to add a message button to your website
publish.twitter.com is a simple configuration tool for to create a message button. Just enter your @screenName to get started.
1. Create an anchor element with a twitter-dm-button class name. Set a href attribute value of https://twitter.com/messages/compose to create a link to the Twitter direct message view. The recipient_id query parameter is the ID of the @username that should receive the messages.
2. Optionally pre-populate message text by customizing the text query parameter.
|Required. The user ID of the Twitter user that will receive the messages.
|Optional. The pre-populated text in the message. Text must be URL encoded.