The first step towards being able to message your customers via Facebook Messenger is getting them to opt-in. In this quickstart, you'll learn what exactly an opt-in is, the opt-in Facebook guidelines, and two possible ways to collect them.
An opt-in practice is when a user agrees to receive messages over Facebook Messenger from your business. Opt-in is required for both new and existing customers and must be collected before you message a user via Facebook Messenger.
One way to get opt-in is via the Messenger plugin. The messenger plugin allows you to display a checkbox for forms on your website that will enable users to opt-in to receive messages from your bot via Messenger. If the user is currently logged in to Facebook, their profile photo and name will be displayed next to the checkbox; if the user isn't logged in to Facebook or wants to log in as a different user, they can authenticate.
The checkbox plugin can be used for just about any form-based flow on your website. For example, you could include the plugin because you wish to send receipts and order updates to your customers.
Best practices for messenger plugin
If you choose to go with a checkbox plugin, you must:
If you would like to build a checkbox plugin, check out the step-by-step Messenger guide which teaches you exactly how to do it.
Another option to get opt-in is with a Messenger bot.
Facebook authorizes your Messenger bot to access a person's profile information in the following events:
Some entry points allow you or people to initiate a conversation without giving your bot authorization to the person's public profile. In those cases, your Messenger bot will be granted permission after the user replied to the initial message. There are several situations where this may occur, such as:
If you would like to build a Messenger bot, check out the Messenger guide which teaches you how to design your bot's conversational flow.