Add Facebook Messenger to Your Website, Step by Step
Meta ended the Facebook chat plugin in May 2024. Here's how to add a Messenger link to your website today, plus a WordPress note and a WhatsApp option.
I first published this in 2018, when Facebook still offered a Customer Chat Plugin that put a chat box on your website. I walked through those steps here, and in a video, because it was a simple way for people to message your Page without leaving the page.
Meta ended that plugin on May 9, 2024. You can no longer add it, and the old embed code no longer works as a chat box on your site. I updated this post so the steps match what works today.
What works today
The current way to add Messenger to your website is an m.me link. Meta still supports these links. When someone clicks the link, Messenger opens a new conversation with your Facebook Page, or an existing one if they've written to you before.
The chat opens in Messenger, on the app or at messenger.com. It does not open in a box on your own page.
Step 1: Find your Facebook Page username
Open your Facebook Page and look at the address in the browser. The username is the part after facebook.com/. You'll use that in the next step.
Step 2: Make your m.me link
Your Messenger link is https://m.me/ followed by your Page username. If your Page is at facebook.com/YourPageName, your Messenger link is https://m.me/YourPageName.
You can also add a starting message. Add ?text= and then the message, with spaces written as %20. For example: https://m.me/YourPageName?text=Hi%2C%20I%20have%20a%20question
Step 3: Add the link to your website
Add a button or a text link on your site and point it at your m.me address. A short label like "Message us on Messenger" is enough. Place it where people already look for help, such as your contact page or the header.
WordPress notes
If your site runs on WordPress, you don't need a special plugin for this. In the editor, add a Button block and paste your m.me link as the URL. You can also add the same link to a menu. If someone else manages your site, send them the m.me address and ask them to add the button.
If you'd rather use WhatsApp
If your customers already reach you on WhatsApp, you can add a WhatsApp link the same way. WhatsApp's click-to-chat link is https://wa.me/ followed by your full phone number in international format, with no plus sign, spaces, zeroes at the start, brackets, or dashes. For a US number, that looks like https://wa.me/1XXXXXXXXXX.
You can add a pre-filled message with ?text=, just like the Messenger link. For example: https://wa.me/1XXXXXXXXXX?text=Hi%2C%20I%20have%20a%20question
WhatsApp also publishes official Chat on WhatsApp button images if you want a standard button. Use those images as they are.
A note about other official buttons
Meta also documents a Message Us button that sends people to Messenger, to messenger.com on a computer or the Messenger app on a phone. An m.me link does the same job and is easy to add yourself.