Program messaging channel: Allowing contacts to opt into Facebook Messenger

Contents

Displaying the Facebook opt-in button on a landing page
   » Inserting the Facebook opt-in code in a landing page
   » Adding a landing page link to an email campaign
Displaying the Facebook opt-in button on your website
   » Inserting the Facebook opt-in code in your website
   » Adding your website's link to an email campaign

Summary

Before your contacts can receive messages from you through Facebook Messenger, they must opt in by clicking the Facebook opt-in button.

Send_to_Messenger_button.png

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:

  1. Insert the Facebook opt-in code in your landing page
  2. Add a landing page link to an email campaign

Inserting the Facebook opt-in code in your landing page

  1. From your account settings, go to Channel management
  2. Copy the Facebook opt-in code from one of your Messenger profiles
  3. In your landing page, select a building block and click the Edit HTML icon

    Landing_pages_edit_HTML.png
  4. Remove any code from the block, and paste the <div> element of the Facebook opt-in code into the block

    Landing_pages_Edit_HTML_Facebook_opt-in.png

    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>
    
  5. Go to Utilities > Add tracking code
  6. Select Other
  7. Paste the <script> element of the Facebook opt-in code into the 'Other tracking code' field
  8. Select Bottom of the <body>, and click Apply

    Facebook_Messenger_opt-in_code_landing_page.png
  9. Publish your landing page
  10. Copy the link to your landing page, and add that link to an email campaign

Landing_page_Facebook_messenger_example.png

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.

  1. In EasyEditor, drag and drop a button into your email campaign
  2. Click Add a link, and select a link to your landing page
  3. 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.

    Landing_page_query.gif
  4. Send your email campaign

Displaying the Facebook opt-in button on your own website

Complete these tasks in following order:

  1. Insert the Facebook opt-in code in the source code of your website
  2. Add your website's link to an email campaign

Inserting the Facebook opt-in code in the source code of your website

  1. From your account settings, go to Channel management
  2. Copy the Facebook opt-in code from one of your Messenger profiles
  3. 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.

  1. In EasyEditor, drag and drop a button into your email campaign
  2. Click Add a link, and select Hyperlink
  3. 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.
  4. Send your email campaign

EasyEditor_Add_hyperlink_to_website_for_Facebook_opt-in_button.png

Have more questions? Submit a request

Comments