Contacts who have opted into a Messenger page (profile) have a value for their FBOPTIN_XXX contact data field.
Learn more in Program messaging channel: Messenger.
To give contacts the option to opt out of Messenger, you need to make this option available in the preference centre, and set up some automations to manage the opt-in process:
Learn more about the preference centre in Set up a preference centre.
Add Messenger to the preference centre
Contacts can edit their preferences in the preference centre by selecting the names of the lists that they want to belong to.
To add Messenger to the preference centre:
Create a list called Messenger opt-in and set its visibility to public, which makes the list visible in the preference centre, so contacts can choose to opt out of it.
Create a triggered email campaign called Messenger opt-out campaign to send to contacts who opt out of this list.
Select the Messenger opt-out campaign from the list's Unsubscribe action dropdown.
Learn more in Trigger a campaign when a contact unsubscribes from a list.
This triggered email campaign is used in the opt-in program to check which contacts have opted out of Messenger.
Multiple profiles
If you want to allow your contacts to unsubscribe from specific Messenger profiles, you can create a list for each profile instead of having one Messenger list.
Create a program for contacts who opt into Messenger
After you've added Messenger to the preference centre, contacts can opt out of Messenger only if they're in the Messenger opt-in list. Therefore, contacts need to be added to the Messenger opt-in list when they opt in. You can create a program to manage this.
To do this:
1. Start node
Create a new program.
In the program builder, select the Start node to open its settings menu.
Create an enrolment schedule that enrols contacts daily at a time that suits your program.
Create an enrolment rule using a segment, that includes contacts whose FBOPTIN_XXX contact data field is not empty, and excludes contacts who have been sent the Messenger opt-out campaign in the last 1 day.
Apply the Re-enrol contacts on the program every day they meet the start criteria enrolment limit.
2. Add contact node
Attach an Add contact node to the Start node.
Select the Add contact node to open its settings menu.
Select the option to add contacts to the Messenger opt-in list.
Attach an End node to the Add contact node.
Create a program for contacts who opt out of Messenger
When a contact opts out of a list in the preference centre, that contact is removed from that list. Therefore, contacts are considered opted out of Messenger if they are not in the Messenger opt-in list.
This program enrols contacts who have opted in to Messenger, but who are no longer in the Messenger opt-in list. Then, the program removes the value of those contacts' FBOPTIN_XXX contact data field.
1. Start node
Create a new program.
In the program builder, select the Start node to open its settings menu.
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:
whose FBOPTIN_XXX contact data field is not empty
who are not in the Messenger opt-in list
who have been sent the Messenger 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.
2. Update contact node
Attach an Update contact node to the Start node.
Select the Update contact node to open its settings menu.
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 Messenger.Attach an End node to the Update contact node.