Messenger guidelines for customer opt-ins

How to get customer’s opt-in for Messenger

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.

The golden rule: active opt-in

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.

Messenger checkbox plugin

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:

  • Include the Facebook for Javascript SDK in the page where the plugin will be rendered. For instructions on including the SDK, check out the Facebook for Javascript SDK Quick Start.
  • Make sure your usage of the plugin complies with local laws, including those that require affirmative user action to opt-in to promotional or direct marketing messages.
  • Follow Facebook guidelines regarding usage and placement of the plugin.

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.

Messenger bot

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:

  • The person starts the conversation via a welcome screen and tapped the Get Started button.
  • The person starts the conversation by clicking a Send to Messenger button.
  • The person starts the conversation by sending a message.
  • The person starts the conversation by accepting a page's message request.
  • Your Messenger bot uses the [askPermission() function](https://developers.facebook.com/docs/messenger-platform/webview/permissions) of the Messenger Extensions SDK in the WebView to ask for the user_profile permission.

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.

Questions?

We’re always happy to help with code or other doubts you might have! Check out our Quickstarts, API Reference, Tutorials, SDKs, or contact our Support team.

Cookie Settings