Setting up the text header when creating the template in Facebook
You can define a multimedia header of type text when you define your template in the Facebook for Business (Meta) website:
The connector only supports 1 header text parameter. You can also set up your template with no parameters, in which case you would send the notifications as if there was no header.
Sending single notifications with a header parameter
Important: If you header does not include a variable, you must not specify the ri_header_type as text when sending your messages. More information here.
If you want to send single notifications with a header parameter, you need to:
- Select the header type: Text
- Enter the header text
More information about sending notifications using Single Notifications can be found here.
Sending notifications with header parameters from an Excel or CSV file
If your Facebook template includes a parameter in the header, you need to specify it in the file. In column ri_header_type, specify "text", and in column ri_header_text, specify the text of the parameter.
If you used a template when you created your campaign, and you leave the ri_header_type and ri_header_text blank, the header text specified in the template will be used by default.
More information about sending notifications using Excel or CSV files can be found here.
Sending a notification with a header parameter from a Zendesk trigger or by calling the API
If your Facebook template includes a pdf header, you must specify it in the your triggers, by adding the following parameters to the POST request:
- ri_header_type: "text"
- ri_header_text: The header parameter
More information about using triggers can be found here. The technical API documentation can be found here.
Sending a notification with a header parameter from the ticket sidebar
If your Facebook template includes a text parameter in the header, you must specify it in the following form:
Leveraging templates
No matter the way you send your notifications, using templates can avoid errors and make your workflows safer and faster.
When you create a template, you can specify the header type and text parameter of that template. If you do, those values will be used as default, so:
- When sending single notifications, from the app or from the ticket sidebar, the header values will be prefilled with what you entered in the template.
- When uploading files and using triggers, if no header parameter is present, it will be used the one from the template. Therefore you don't need to include them every time, only when they change.
More information about templates here.