Assign label
facebook_assign_labelAssign or remove a custom label on a person's PSID so their conversation appears in a Page inbox label view. Runs as a dry-run preview by default; set apply:true to change it.
Instructions
Put a custom label on one person (their PSID from a conversation), so the thread shows in the Page inbox label view; remove:true takes it off. The person is not notified. Dry run by default; apply:true changes it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| psid | Yes | The person (PSID) to label, from facebook_get_conversation. | |
| apply | No | Set true to actually perform the write. Omitted or false ⇒ the server decides from its configured write mode: usually a dry run that returns a plan preview and changes nothing, but a server (or package) configured apply-first performs the write. To be certain nothing happens, read the result: a dry run always reports the plan and says the write was NOT performed. | |
| remove | No | true takes the label off the person instead. | |
| plan_id | No | The `planId` returned by a preceding dry-run preview of this same tool. Required for irreversible and spend-tier writes; plans expire a few minutes after they are created. | |
| profile | No | Page profile key (e.g. "brand-a") or a raw Page ID. Omitted ⇒ the default Page (FB_PAGE_ID). | |
| label_id | Yes | Label id from facebook_list_labels or facebook_create_label. |