Upload message attachment
facebook_upload_message_attachmentUploads one public HTTPS image, audio, video, or file to a Page’s Messenger attachment store and returns a reusable attachment_id for sending via facebook_send_message; dry run by default.
Instructions
Upload ONE file (image / audio / video / file) by public HTTPS URL to the Page’s Messenger attachment store and get a reusable attachment_id — valid for about 90 days, this Page only — to pass to facebook_send_message as attachment.attachment_id, so the same file goes to many people without a re-fetch. Nobody receives anything. Dry run by default; apply:true uploads.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | A public https:// URL Meta fetches itself (no credentials in it). Meta gives up after about 10 s (75 s for video); images up to 8 MB, other files up to 25 MB. | |
| type | Yes | Attachment kind: image, audio, video or file (for example a PDF). | |
| 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. | |
| 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). |