Overview
Before your contacts can receive messages from you through Facebook Messenger, they must opt in by clicking the Facebook opt-in button.
You can display this opt-in button on either a landing page or one of the pages on your website.
After your contacts opt in, they are given a value for their FBOPTIN_XXX contact data field. This value is confirmation of your contacts' opt-in and without it, they can't be sent messages from you through Facebook Messenger.
Want to opt out contacts from Facebook Messenger?
To opt out contacts from Facebook Messenger, remove the value of those contacts' FBOPTIN_XXX contact data field.
You can add Facebook Messenger to the preference centre to allow contacts to opt out themselves.
Displaying the Facebook opt-in button on a landing page
Don't have landing pages?
Landing pages aren't a standard feature. If landing pages aren't active on your account, contact us or try displaying the Facebook opt-in button on your own website.
Complete these tasks in the following order:
Inserting the Facebook opt-in code in your landing page
- From your account settings, go to Channel management
- Copy the Facebook opt-in code from one of your Messenger profiles
- In your landing page, select a building block and click the Edit HTML icon
- Remove any code from the block, and paste the
<div>
element of the Facebook opt-in code into the block
Tip
By default, the button is aligned with the left of the page. To align your opt-in button with the centre of the landing page, replace the code in the block with the following:
<div style="text-align: center;"> <div style="display: inline-block;" id="divFBMessenger" class="fb-send-to-messenger" messenger_app_id="" page_id="" data-ref="" color="blue" size="large"> </div> </div>
- Go to Utilities > Add tracking code
- Select Other
- Paste the
<script>
element of the Facebook opt-in code into the 'Other tracking code' field - Select Bottom of the <body>, and click Apply
- Publish your landing page
- Copy the link to your landing page, and add that link to an email campaign
Adding a landing page link to an email campaign
Your Facebook opt-in button is displayed on your landing page only if the URL in the landing page link contains an email address. If that email address is not in one of your address books, the email address is not opted in to Facebook Messenger.
- In EasyEditor, drag and drop a button into your email campaign
- Click Add a link, and select a link to your landing page
- Add the following query to the end of the button URL:
?email=@EMAIL@
. The @EMAIL@ placeholder will be replaced with a contact's email address when you send the campaign.
- Send your email campaign
Displaying the Facebook opt-in button on your own website
Complete these tasks in following order:
- Insert the Facebook opt-in code in the source code of your website
- Add your website's link to an email campaign
Inserting the Facebook opt-in code in the source code of your website
- From your account settings, go to Channel management
- Copy the Facebook opt-in code from one of your Messenger profiles
- Paste this code into the HTML of a page on your website and make a note of the URL for this page
Adding your website's link to an email campaign
Your Facebook opt-in button is displayed on a page of your website only if the URL in your website's link contains an email address. If that email address is not in one of your address books, the email address is not opted in to Facebook Messenger.
- In EasyEditor, drag and drop a button into your email campaign
- Click Add a link, and select Hyperlink
- Add the following query to the end of the link URL:
?email=@EMAIL@
. The @EMAIL@ placeholder will be replaced with a contact's email address when you send the campaign. - Send your email campaign