Program messaging channel: Allowing contacts to opt out of Facebook Messenger

Overview

Contacts who have opted in to a Facebook Messenger page (profile) have a value for their FBOPTIN_XXX contact data field.

To give contacts the option to opt out of Facebook Messenger, you need to add Facebook Messenger to the preference centre by completing the following steps:

  1. Add Facebook Messenger to the preference centre
  2. Create a program for contacts who opt in to Facebook Messenger
  3. Create a program for contacts who opt out of Facebook Messenger

Want to know more about the preference centre?

Read more details about setting up a preference centre.

Adding Facebook Messenger to the preference centre

Contacts can edit their preferences in the preference centre by selecting the names of the address books that they want to belong to. Therefore, to add Facebook Messenger to the preference centre, do the following:

  1. Create an address book called 'Facebook Messenger' and set its visibility to public. This address book will be displayed in the preference centre, so contacts can choose to opt out of it.
  2. Create a triggered campaign called 'Facebook opt-out campaign' to send to contacts who opt out of this address book
  3. Select the 'Facebook opt-out campaign' from the address book's 'Unsubscribe action' dropdown. This triggered campaign is used in the opt-in program to check which contacts opted out of Facebook Messenger.

Preference_centre_Facebook_Messenger.png

Note: If you want to allow your contacts to unsubscribe from specific Facebook Messenger profiles, you can create an address book for each profile, instead of having one 'Facebook Messenger' address book.

Creating a program for contacts who opt in to Facebook Messenger

After you've added Facebook Messenger to the preference centre, contacts can opt out of Facebook Messenger only if they're in the 'Facebook Messenger' address book.

Therefore, contacts need to be added to the 'Facebook Messenger' address book when they opt in.

This program enrols contacts who have opted in to Facebook Messenger and adds those contacts to the 'Facebook Messenger' address book.

Start node

In the Start node, create an enrolment schedule that enrols contacts daily at a time that suits your program.

Create an enrolment rule that includes contacts who have a non-empty FBOPTIN_XXX contact data field, and excludes contacts who have been sent the 'Facebook opt-out campaign' in the last 1 day.
Apply the Re-enrol contacts on the program every day they meet the start critera enrolment limit.

Add contact node

Attach an Add contact node to the Start node. In the Add contact node, select the option to add contacts to the 'Facebook Messenger' address book.

End node

Attach an End node to the Subscription node. Contacts will exit the program.

Your program should look something like this:

Program_builder_Facebook_messenger_opt_in.png

Creating a program for contacts who opt out of Facebook Messenger

When a contact opts out of an address book in the preference centre, that contact is removed from that address book. Therefore, contacts are considered opted out of Facebook Messenger if they are not in the 'Facebook Messenger' address book.

This program enrols contacts who have opted in to Facebook Messenger, but who are no longer in the 'Facebook Messenger' address book. Then, the program removes the value of those contacts' FBOPTIN_XXX contact data fields.

Start node

In the Start node, create an enrolment schedule that enrols contacts daily at a later time than the one you selected in the opt-in program.

Create an enrolment rule that includes contacts who have a non-empty FBOPTIN_XXX contact data field, who are not in the 'Facebook Messenger' address book, and who have been sent the 'Facebook opt-out campaign' in the last 1 day.
Apply the Re-enrol contacts on the program every day they meet the start critera enrolment limit.

Update contact node

Attach an Update contact node to the Start node. In the Update contact node, select the FBOPTIN_XXX contact data field, and leave the 'Set value to' field empty. Contacts with an empty value are no longer opted in to Facebook Messenger.

End node

Attach an End node to the Update contact node. Contacts will exit the program.

Your program should look something like this:

Program_builder_Facebook_messenger_opt_out.png

Did you find this article helpful?

Can we help?

Thanks for using Dotdigital. If you need more help or support, then contact our support team.