Skip to content

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

feat(facebook-pages): ui improvement (#16101)

Talal Jabera43911308a4c
diff --git a/bun.lock b/bun.lock
index 758a0c0ff5c..f5b54335f75 100644
--- a/bun.lock
+++ b/bun.lock
@@ -3066,7 +3066,7 @@
},
"packages/pieces/community/facebook-pages": {
"name": "@activepieces/piece-facebook-pages",
- "version": "0.3.0",
+ "version": "0.4.0",
"dependencies": {
"@activepieces/core-piece-types": "workspace:*",
"@activepieces/core-utils": "workspace:*",
diff --git a/packages/pieces/community/facebook-pages/package.json b/packages/pieces/community/facebook-pages/package.json
index a8ff5b7b524..851a7e24091 100644
--- a/packages/pieces/community/facebook-pages/package.json
+++ b/packages/pieces/community/facebook-pages/package.json
@@ -1,6 +1,6 @@
{
"name": "@activepieces/piece-facebook-pages",
- "version": "0.3.0",
+ "version": "0.4.0",
"main": "./dist/src/index.js",
"types": "./dist/src/index.d.ts",
"scripts": {
diff --git a/packages/pieces/community/facebook-pages/src/i18n/de.json b/packages/pieces/community/facebook-pages/src/i18n/de.json
index d092c58929b..3cec9f75857 100644
--- a/packages/pieces/community/facebook-pages/src/i18n/de.json
+++ b/packages/pieces/community/facebook-pages/src/i18n/de.json
@@ -16,5 +16,14 @@
"Title": "Titel",
"Description": "Beschreibung",
"A URL we can access for the photo": "Eine URL, auf die wir für das Foto zugreifen können",
- "A URL we can access for the video (Limit: 1GB or 20 minutes)": "Eine URL, auf die wir für das Video zugreifen können (Limit: 1GB oder 20 Minuten)"
+ "A URL we can access for the video (Limit: 1GB or 20 minutes)": "Eine URL, auf die wir für das Video zugreifen können (Limit: 1GB oder 20 Minuten)",
+ "Photo URL": "Foto-URL",
+ "Video URL": "Video-URL",
+ "Pages you gave access to when connecting your account.": "Seiten, für die Sie beim Verbinden Ihres Kontos Zugriff gewährt haben.",
+ "Facebook adds a preview card for this link below the post.": "Facebook zeigt unter dem Beitrag eine Vorschaukarte für diesen Link an.",
+ "Public URL of the image, so Facebook can download it.": "Öffentliche URL des Bildes, damit Facebook es herunterladen kann.",
+ "Post text shown with the photo.": "Beitragstext, der mit dem Foto angezeigt wird.",
+ "Public URL of the video file, up to 1 GB or 20 minutes.": "Öffentliche URL der Videodatei, bis zu 1 GB oder 20 Minuten.",
+ "Name of the video, shown on the Page's Videos tab.": "Name des Videos, angezeigt im Tab „Videos“ der Seite.",
+ "Post text shown with the video.": "Beitragstext, der mit dem Video angezeigt wird."
}
\ No newline at end of file
diff --git a/packages/pieces/community/facebook-pages/src/i18n/es.json b/packages/pieces/community/facebook-pages/src/i18n/es.json
index baa451505d6..0611fbff0b2 100644
--- a/packages/pieces/community/facebook-pages/src/i18n/es.json
+++ b/packages/pieces/community/facebook-pages/src/i18n/es.json
@@ -16,5 +16,14 @@
"Title": "Título",
"Description": "Descripción",
"A URL we can access for the photo": "Una URL a la que podemos acceder para la foto",
- "A URL we can access for the video (Limit: 1GB or 20 minutes)": "Una URL a la que podemos acceder para el vídeo (Limitado: 1GB o 20 minutos)"
+ "A URL we can access for the video (Limit: 1GB or 20 minutes)": "Una URL a la que podemos acceder para el vídeo (Limitado: 1GB o 20 minutos)",
+ "Photo URL": "URL de la foto",
+ "Video URL": "URL del vídeo",
+ "Pages you gave access to when connecting your account.": "Páginas a las que diste acceso al conectar tu cuenta.",
+ "Facebook adds a preview card for this link below the post.": "Facebook añade una tarjeta de vista previa de este enlace debajo de la publicación.",
+ "Public URL of the image, so Facebook can download it.": "URL pública de la imagen, para que Facebook pueda descargarla.",
+ "Post text shown with the photo.": "Texto de la publicación que se muestra con la foto.",
+ "Public URL of the video file, up to 1 GB or 20 minutes.": "URL pública del archivo de vídeo, hasta 1 GB o 20 minutos.",
+ "Name of the video, shown on the Page's Videos tab.": "Nombre del vídeo, que se muestra en la pestaña Vídeos de la página.",
+ "Post text shown with the video.": "Texto de la publicación que se muestra con el vídeo."
}
\ No newline at end of file
diff --git a/packages/pieces/community/facebook-pages/src/i18n/fr.json b/packages/pieces/community/facebook-pages/src/i18n/fr.json
index 2e818cf4a4a..90039ad4fc5 100644
--- a/packages/pieces/community/facebook-pages/src/i18n/fr.json
+++ b/packages/pieces/community/facebook-pages/src/i18n/fr.json
@@ -16,5 +16,14 @@
"Title": "Titre de la page",
"Description": "Libellé",
"A URL we can access for the photo": "Une URL à laquelle nous pouvons accéder pour la photo",
- "A URL we can access for the video (Limit: 1GB or 20 minutes)": "Une URL à laquelle nous pouvons accéder pour la vidéo (Limite: 1Go ou 20 minutes)"
+ "A URL we can access for the video (Limit: 1GB or 20 minutes)": "Une URL à laquelle nous pouvons accéder pour la vidéo (Limite: 1Go ou 20 minutes)",
+ "Photo URL": "URL de la photo",
+ "Video URL": "URL de la vidéo",
+ "Pages you gave access to when connecting your account.": "Pages auxquelles vous avez donné accès en connectant votre compte.",
+ "Facebook adds a preview card for this link below the post.": "Facebook ajoute une carte d'aperçu de ce lien sous la publication.",
+ "Public URL of the image, so Facebook can download it.": "URL publique de l'image, pour que Facebook puisse la télécharger.",
+ "Post text shown with the photo.": "Texte de la publication affiché avec la photo.",
+ "Public URL of the video file, up to 1 GB or 20 minutes.": "URL publique du fichier vidéo, jusqu'à 1 Go ou 20 minutes.",
+ "Name of the video, shown on the Page's Videos tab.": "Nom de la vidéo, affiché dans l'onglet Vidéos de la Page.",
+ "Post text shown with the video.": "Texte de la publication affiché avec la vidéo."
}
\ No newline at end of file
diff --git a/packages/pieces/community/facebook-pages/src/i18n/ja.json b/packages/pieces/community/facebook-pages/src/i18n/ja.json
index d2a68a88128..1062191430a 100644
--- a/packages/pieces/community/facebook-pages/src/i18n/ja.json
+++ b/packages/pieces/community/facebook-pages/src/i18n/ja.json
@@ -16,5 +16,14 @@
"Title": "タイトル",
"Description": "Description",
"A URL we can access for the photo": "写真にアクセスできるURL",
- "A URL we can access for the video (Limit: 1GB or 20 minutes)": "動画にアクセスできるURL(上限:1GBまたは20分)"
+ "A URL we can access for the video (Limit: 1GB or 20 minutes)": "動画にアクセスできるURL(上限:1GBまたは20分)",
+ "Photo URL": "写真のURL",
+ "Video URL": "ビデオのURL",
+ "Pages you gave access to when connecting your account.": "アカウントの接続時にアクセスを許可したページ。",
+ "Facebook adds a preview card for this link below the post.": "Facebook は投稿の下にこのリンクのプレビューカードを表示します。",
+ "Public URL of the image, so Facebook can download it.": "Facebook がダウンロードできる、画像の公開URL。",
+ "Post text shown with the photo.": "写真と一緒に表示される投稿テキスト。",
+ "Public URL of the video file, up to 1 GB or 20 minutes.": "ビデオファイルの公開URL(最大 1 GB または 20 分)。",
+ "Name of the video, shown on the Page's Videos tab.": "ビデオの名前。ページの「動画」タブに表示されます。",
+ "Post text shown with the video.": "ビデオと一緒に表示される投稿テキスト。"
}
\ No newline at end of file
diff --git a/packages/pieces/community/facebook-pages/src/i18n/nl.json b/packages/pieces/community/facebook-pages/src/i18n/nl.json
index 24b9f3c5833..ab079886759 100644
--- a/packages/pieces/community/facebook-pages/src/i18n/nl.json
+++ b/packages/pieces/community/facebook-pages/src/i18n/nl.json
@@ -16,5 +16,14 @@
"Title": "Aanspreektitel",
"Description": "Beschrijving",
"A URL we can access for the photo": "Een URL die we voor de foto kunnen gebruiken",
- "A URL we can access for the video (Limit: 1GB or 20 minutes)": "Een URL die we kunnen gebruiken voor de video (limiet: 1GB of 20 minuten)"
+ "A URL we can access for the video (Limit: 1GB or 20 minutes)": "Een URL die we kunnen gebruiken voor de video (limiet: 1GB of 20 minuten)",
+ "Photo URL": "Foto-URL",
+ "Video URL": "Video-URL",
+ "Pages you gave access to when connecting your account.": "Pagina's waartoe je toegang hebt gegeven bij het koppelen van je account.",
+ "Facebook adds a preview card for this link below the post.": "Facebook toont onder het bericht een voorbeeldkaart voor deze link.",
+ "Public URL of the image, so Facebook can download it.": "Openbare URL van de afbeelding, zodat Facebook die kan downloaden.",
+ "Post text shown with the photo.": "Berichttekst die bij de foto wordt getoond.",
+ "Public URL of the video file, up to 1 GB or 20 minutes.": "Openbare URL van het videobestand, tot 1 GB of 20 minuten.",
+ "Name of the video, shown on the Page's Videos tab.": "Naam van de video, getoond op het tabblad Video's van de pagina.",
+ "Post text shown with the video.": "Berichttekst die bij de video wordt getoond."
}
\ No newline at end of file
diff --git a/packages/pieces/community/facebook-pages/src/i18n/pt.json b/packages/pieces/community/facebook-pages/src/i18n/pt.json
index 22dc8316c15..670a5e544f4 100644
--- a/packages/pieces/community/facebook-pages/src/i18n/pt.json
+++ b/packages/pieces/community/facebook-pages/src/i18n/pt.json
@@ -16,5 +16,14 @@
"Title": "Título",
"Description": "Descrição",
"A URL we can access for the photo": "Um URL que podemos acessar para a foto",
- "A URL we can access for the video (Limit: 1GB or 20 minutes)": "Uma URL que podemos acessar para o vídeo (limite: 1GB ou 20 minutos)"
+ "A URL we can access for the video (Limit: 1GB or 20 minutes)": "Uma URL que podemos acessar para o vídeo (limite: 1GB ou 20 minutos)",
+ "Photo URL": "URL da foto",
+ "Video URL": "URL do vídeo",
+ "Pages you gave access to when connecting your account.": "Páginas às quais você deu acesso ao conectar sua conta.",
+ "Facebook adds a preview card for this link below the post.": "O Facebook adiciona um cartão de pré-visualização deste link abaixo da publicação.",
+ "Public URL of the image, so Facebook can download it.": "URL pública da imagem, para que o Facebook possa baixá-la.",
+ "Post text shown with the photo.": "Texto da publicação exibido com a foto.",
+ "Public URL of the video file, up to 1 GB or 20 minutes.": "URL pública do arquivo de vídeo, até 1 GB ou 20 minutos.",
+ "Name of the video, shown on the Page's Videos tab.": "Nome do vídeo, exibido na aba Vídeos da Página.",
+ "Post text shown with the video.": "Texto da publicação exibido com o vídeo."
}
\ No newline at end of file
diff --git a/packages/pieces/community/facebook-pages/src/i18n/ru.json b/packages/pieces/community/facebook-pages/src/i18n/ru.json
index 0d6f0e849a0..65b7ee5815b 100644
--- a/packages/pieces/community/facebook-pages/src/i18n/ru.json
+++ b/packages/pieces/community/facebook-pages/src/i18n/ru.json
@@ -17,5 +17,14 @@
"Title": "Заголовок",
"Description": "Description",
"A URL we can access for the photo": "URL-адрес, к которому мы можем получить доступ к фото",
- "A URL we can access for the video (Limit: 1GB or 20 minutes)": "URL-адрес, к которому мы можем получить доступ для видео (лимит: 1ГБ или 20 минут)"
+ "A URL we can access for the video (Limit: 1GB or 20 minutes)": "URL-адрес, к которому мы можем получить доступ для видео (лимит: 1ГБ или 20 минут)",
+ "Photo URL": "URL фото",
+ "Video URL": "URL видео",
+ "Pages you gave access to when connecting your account.": "Страницы, к которым вы дали доступ при подключении аккаунта.",
+ "Facebook adds a preview card for this link below the post.": "Facebook добавит под публикацией карточку предпросмотра этой ссылки.",
+ "Public URL of the image, so Facebook can download it.": "Публичный URL изображения, чтобы Facebook мог его скачать.",
+ "Post text shown with the photo.": "Текст публикации, который показывается вместе с фото.",
+ "Public URL of the video file, up to 1 GB or 20 minutes.": "Публичный URL видеофайла, до 1 ГБ или 20 минут.",
+ "Name of the video, shown on the Page's Videos tab.": "Название видео, которое показывается на вкладке «Видео» Страницы.",
+ "Post text shown with the video.": "Текст публикации, который показывается вместе с видео."
}
\ No newline at end of file
diff --git a/packages/pieces/community/facebook-pages/src/i18n/translation.json b/packages/pieces/community/facebook-pages/src/i18n/translation.json
index ef9e30553d7..3f7ca33780f 100644
--- a/packages/pieces/community/facebook-pages/src/i18n/translation.json
+++ b/packages/pieces/community/facebook-pages/src/i18n/translation.json
@@ -4,17 +4,87 @@
"Create Page Post": "Create Page Post",
"Create Page Photo": "Create Page Photo",
"Create Page Video": "Create Page Video",
+ "List Managed Pages": "List Managed Pages",
+ "Get Page Details": "Get Page Details",
+ "Create Page Photo Post": "Create Page Photo Post",
+ "Create Page Video Post": "Create Page Video Post",
+ "Create Multi-Photo Post": "Create Multi-Photo Post",
+ "Get Page Posts": "Get Page Posts",
+ "Get Post": "Get Post",
+ "Update Post": "Update Post",
+ "Delete Post": "Delete Post",
+ "Get Scheduled Posts": "Get Scheduled Posts",
+ "Publish Scheduled Post": "Publish Scheduled Post",
+ "Reschedule Post": "Reschedule Post",
+ "Get Page Photos": "Get Page Photos",
+ "Get Page Videos": "Get Page Videos",
+ "Get Post Reactions": "Get Post Reactions",
"Create a post on a Facebook Page you manage": "Create a post on a Facebook Page you manage",
"Create a photo on a Facebook Page you manage": "Create a photo on a Facebook Page you manage",
"Create a video on a Facebook Page you manage": "Create a video on a Facebook Page you manage",
+ "Lists the Facebook Pages the connected account manages.": "Lists the Facebook Pages the connected account manages.",
+ "Gets the profile details of a Facebook Page.": "Gets the profile details of a Facebook Page.",
+ "Publishes or schedules a text or link post on a Facebook Page.": "Publishes or schedules a text or link post on a Facebook Page.",
+ "Publishes a photo post on a Facebook Page from an image URL.": "Publishes a photo post on a Facebook Page from an image URL.",
+ "Publishes a video on a Facebook Page from a video URL.": "Publishes a video on a Facebook Page from a video URL.",
+ "Publishes one Facebook Page post containing several photos.": "Publishes one Facebook Page post containing several photos.",
+ "Lists the posts published by a Facebook Page.": "Lists the posts published by a Facebook Page.",
+ "Gets one post from a Facebook Page.": "Gets one post from a Facebook Page.",
+ "Changes the message of a Facebook Page post.": "Changes the message of a Facebook Page post.",
+ "Permanently deletes a Facebook Page post.": "Permanently deletes a Facebook Page post.",
+ "Lists the scheduled, not yet published posts of a Facebook Page.": "Lists the scheduled, not yet published posts of a Facebook Page.",
+ "Publishes a scheduled Facebook Page post immediately.": "Publishes a scheduled Facebook Page post immediately.",
+ "Changes when a scheduled Facebook Page post will be published.": "Changes when a scheduled Facebook Page post will be published.",
+ "Lists the photos uploaded by a Facebook Page.": "Lists the photos uploaded by a Facebook Page.",
+ "Lists the videos uploaded by a Facebook Page.": "Lists the videos uploaded by a Facebook Page.",
+ "Counts the reactions on a Facebook Page post.": "Counts the reactions on a Facebook Page post.",
"Page": "Page",
"Message": "Message",
"Link": "Link",
- "Photo": "Photo",
+ "Photo URL": "Photo URL",
"Caption": "Caption",
- "Video": "Video",
+ "Video URL": "Video URL",
"Title": "Title",
"Description": "Description",
- "A URL we can access for the photo": "A URL we can access for the photo",
- "A URL we can access for the video (Limit: 1GB or 20 minutes)": "A URL we can access for the video (Limit: 1GB or 20 minutes)"
+ "Limit": "Limit",
+ "After Cursor": "After Cursor",
+ "Page ID": "Page ID",
+ "Fields": "Fields",
+ "Scheduled Publish Time": "Scheduled Publish Time",
+ "Photo URLs": "Photo URLs",
+ "Post ID": "Post ID",
+ "Reaction Type": "Reaction Type",
+ "Pages you gave access to when connecting your account.": "Pages you gave access to when connecting your account.",
+ "Facebook adds a preview card for this link below the post.": "Facebook adds a preview card for this link below the post.",
+ "Public URL of the image, so Facebook can download it.": "Public URL of the image, so Facebook can download it.",
+ "Post text shown with the photo.": "Post text shown with the photo.",
+ "Public URL of the video file, up to 1 GB or 20 minutes.": "Public URL of the video file, up to 1 GB or 20 minutes.",
+ "Name of the video, shown on the Page's Videos tab.": "Name of the video, shown on the Page's Videos tab.",
+ "Post text shown with the video.": "Post text shown with the video.",
+ "Maximum number of items to return in this page (1 to 100).": "Maximum number of items to return in this page (1 to 100).",
+ "The next_cursor value from a previous call, to fetch the next page.": "The next_cursor value from a previous call, to fetch the next page.",
+ "Numeric ID of a Facebook Page the connected account manages. Find it with List Managed Pages.": "Numeric ID of a Facebook Page the connected account manages. Find it with List Managed Pages.",
+ "Graph API fields to return instead of the defaults (id,name,username,category,about,description,link,website,phone,emails,single_line_address,followers_count,verification_status,is_published,picture{url},cover{source}).": "Graph API fields to return instead of the defaults (id,name,username,category,about,description,link,website,phone,emails,single_line_address,followers_count,verification_status,is_published,picture{url},cover{source}).",
+ "The text of the post. Required unless a link is given.": "The text of the post. Required unless a link is given.",
+ "A URL to attach; Facebook renders it as a preview card.": "A URL to attach; Facebook renders it as a preview card.",
+ "ISO 8601 date and time to publish the post, at least 10 minutes from now. Leave empty to publish immediately.": "ISO 8601 date and time to publish the post, at least 10 minutes from now. Leave empty to publish immediately.",
+ "A public URL of the image that Facebook can download (JPEG, PNG, GIF, BMP or TIFF, up to 4 MB).": "A public URL of the image that Facebook can download (JPEG, PNG, GIF, BMP or TIFF, up to 4 MB).",
+ "Text shown with the photo.": "Text shown with the photo.",
+ "A public URL of the video file that Facebook can download.": "A public URL of the video file that Facebook can download.",
+ "Text shown with the video.": "Text shown with the video.",
+ "Public image URLs that Facebook can download, 2 to 20 of them, in display order.": "Public image URLs that Facebook can download, 2 to 20 of them, in display order.",
+ "Text of the post.": "Text of the post.",
+ "The post ID in PageID_PostID format, as returned in post_id by Create Page Photo Post, in id by Create Page Post, or by Get Page Posts. A photo or video ID is not a post ID.": "The post ID in PageID_PostID format, as returned in post_id by Create Page Photo Post, in id by Create Page Post, or by Get Page Posts. A photo or video ID is not a post ID.",
+ "Graph API fields to return instead of the defaults (id,message,created_time,updated_time,permalink_url,status_type,full_picture,is_published,scheduled_publish_time,attachments{media_type,type,title,description,url,media}).": "Graph API fields to return instead of the defaults (id,message,created_time,updated_time,permalink_url,status_type,full_picture,is_published,scheduled_publish_time,attachments{media_type,type,title,description,url,media}).",
+ "The new text of the post.": "The new text of the post.",
+ "ISO 8601 date and time to publish the post, at least 10 minutes from now.": "ISO 8601 date and time to publish the post, at least 10 minutes from now.",
+ "A post ID in PageID_PostID format.": "A post ID in PageID_PostID format.",
+ "Only count this reaction type. Leave empty to count all reactions.": "Only count this reaction type. Leave empty to count all reactions.",
+ "LIKE": "LIKE",
+ "LOVE": "LOVE",
+ "CARE": "CARE",
+ "HAHA": "HAHA",
+ "WOW": "WOW",
+ "SAD": "SAD",
+ "ANGRY": "ANGRY"
}
\ No newline at end of file
diff --git a/packages/pieces/community/facebook-pages/src/i18n/zh.json b/packages/pieces/community/facebook-pages/src/i18n/zh.json
index 43e2625f478..b2ab1f218b3 100644
--- a/packages/pieces/community/facebook-pages/src/i18n/zh.json
+++ b/packages/pieces/community/facebook-pages/src/i18n/zh.json
@@ -16,5 +16,14 @@
"Title": "标题",
"Description": "描述",
"A URL we can access for the photo": "A URL we can access for the photo",
- "A URL we can access for the video (Limit: 1GB or 20 minutes)": "A URL we can access for the video (Limit: 1GB or 20 minutes)"
+ "A URL we can access for the video (Limit: 1GB or 20 minutes)": "A URL we can access for the video (Limit: 1GB or 20 minutes)",
+ "Photo URL": "照片 URL",
+ "Video URL": "视频 URL",
+ "Pages you gave access to when connecting your account.": "连接帐户时你授予访问权限的主页。",
+ "Facebook adds a preview card for this link below the post.": "Facebook 会在帖子下方为此链接添加预览卡片。",
+ "Public URL of the image, so Facebook can download it.": "图片的公开 URL,以便 Facebook 下载。",
+ "Post text shown with the photo.": "与照片一起显示的帖子文字。",
+ "Public URL of the video file, up to 1 GB or 20 minutes.": "视频文件的公开 URL,最大 1 GB 或 20 分钟。",
+ "Name of the video, shown on the Page's Videos tab.": "视频名称,显示在主页的“视频”标签页中。",
+ "Post text shown with the video.": "与视频一起显示的帖子文字。"
}
\ No newline at end of file
diff --git a/packages/pieces/community/facebook-pages/src/index.ts b/packages/pieces/community/facebook-pages/src/index.ts
index 206d5e28446..04f9d3d7858 100644
--- a/packages/pieces/community/facebook-pages/src/index.ts
+++ b/packages/pieces/community/facebook-pages/src/index.ts
@@ -23,7 +23,7 @@ import { getPostReactionsAction } from './lib/actions/ai/get-post-reactions';
export const facebookPages = createPiece({
displayName: 'Facebook Pages',
description: 'Manage your Facebook pages to grow your business',
- minimumSupportedRelease: '0.87.0',
+ minimumSupportedRelease: '0.88.2',
logoUrl: 'https://cdn.activepieces.com/pieces/facebook.png',
categories: [PieceCategory.MARKETING],
authors: ["kishanprmr","MoShizzle","khaledmashaly","abuaboud"],
diff --git a/packages/pieces/community/facebook-pages/src/lib/actions/create-photo-post.ts b/packages/pieces/community/facebook-pages/src/lib/actions/create-photo-post.ts
index 75b70bccbcd..549631c2374 100644
--- a/packages/pieces/community/facebook-pages/src/lib/actions/create-photo-post.ts
+++ b/packages/pieces/community/facebook-pages/src/lib/actions/create-photo-post.ts
@@ -13,6 +13,10 @@ export const createPhotoPost = createAction({
audience: 'human',
aiMetadata: { description: 'Publishes a photo post to a Facebook Page the connected account manages by uploading an image from a publicly reachable URL, with an optional caption. Choose this when the post is an image rather than plain text or video. Requires a managed page and a photo URL that Facebook can fetch; not idempotent, as each call creates a new photo post.', idempotent: false },
outputSchema: createPhotoPostActionOutputSchema,
+ propertyGroups: [
+ { key: 'destination', display: 'section', label: 'Post to', icon: 'send', props: ['page'] },
+ { key: 'post', display: 'section', label: 'Post', icon: 'file', props: ['photo', 'caption'] },
+ ],
props: {
page: facebookPagesCommon.page,
photo: facebookPagesCommon.photo,
diff --git a/packages/pieces/community/facebook-pages/src/lib/actions/create-post.ts b/packages/pieces/community/facebook-pages/src/lib/actions/create-post.ts
index ce814a5534f..6165871e97f 100644
--- a/packages/pieces/community/facebook-pages/src/lib/actions/create-post.ts
+++ b/packages/pieces/community/facebook-pages/src/lib/actions/create-post.ts
@@ -13,6 +13,10 @@ export const createPost = createAction({
audience: 'human',
aiMetadata: { description: 'Publishes a text status update to the feed of a Facebook Page the connected account manages, optionally attaching a link that Facebook will render as a preview card. Choose this for plain-text or link announcements; use the photo or video post actions for media uploads. Requires selecting a managed page (which supplies the page-scoped access token) and a message; not idempotent, as each call publishes a separate post.', idempotent: false },
outputSchema: createPostActionOutputSchema,
+ propertyGroups: [
+ { key: 'destination', display: 'section', label: 'Post to', icon: 'send', props: ['page'] },
+ { key: 'post', display: 'section', label: 'Post', icon: 'text', props: ['message', 'link'] },
+ ],
props: {
page: facebookPagesCommon.page,
message: facebookPagesCommon.message,
diff --git a/packages/pieces/community/facebook-pages/src/lib/actions/create-video-post.ts b/packages/pieces/community/facebook-pages/src/lib/actions/create-video-post.ts
index 3342b38e162..880bca039f0 100644
--- a/packages/pieces/community/facebook-pages/src/lib/actions/create-video-post.ts
+++ b/packages/pieces/community/facebook-pages/src/lib/actions/create-video-post.ts
@@ -13,6 +13,10 @@ export const createVideoPost = createAction({
audience: 'human',
aiMetadata: { description: 'Publishes a video post to a Facebook Page the connected account manages by uploading a video from a publicly reachable URL, with an optional title and description. Choose this for video content rather than text or photo posts. Requires a managed page and a video URL Facebook can fetch (limit 1GB or 20 minutes); not idempotent, as each call uploads a new video.', idempotent: false },
outputSchema: createVideoPostActionOutputSchema,
+ propertyGroups: [
+ { key: 'destination', display: 'section', label: 'Post to', icon: 'send', props: ['page'] },
+ { key: 'post', display: 'section', label: 'Post', icon: 'file', props: ['video', 'title', 'description'] },
+ ],
props: {
page: facebookPagesCommon.page,
video: facebookPagesCommon.video,
diff --git a/packages/pieces/community/facebook-pages/src/lib/common/common.ts b/packages/pieces/community/facebook-pages/src/lib/common/common.ts
index 796a7586cbb..0c302332565 100644
--- a/packages/pieces/community/facebook-pages/src/lib/common/common.ts
+++ b/packages/pieces/community/facebook-pages/src/lib/common/common.ts
@@ -106,6 +106,7 @@ export const facebookPagesCommon = {
page: Property.Dropdown<FacebookPageDropdown, true, typeof facebookPagesAuth>({
auth: facebookPagesAuth,
displayName: 'Page',
+ description: 'Pages you gave access to when connecting your account.',
required: true,
refreshers: [],
options: async ({ auth }) => {
@@ -116,43 +117,54 @@ export const facebookPagesCommon = {
if (pages === null) {
return { disabled: true, options: [], placeholder: 'Could not load your Pages, reconnect your account' };
}
+ if (pages.length === 0) {
+ return { disabled: false, options: [], placeholder: 'No Pages found. Reconnect and select at least one Page.' };
+ }
return {
options: pages.map((page) => ({
label: page.name,
value: { id: page.id, accessToken: page.access_token },
})),
- placeholder: 'Choose a page',
+ placeholder: 'Choose a Page',
};
},
}),
message: Property.LongText({
displayName: 'Message',
+ placeholder: 'What do you want to share?',
required: true,
}),
link: Property.ShortText({
displayName: 'Link',
+ description: 'Facebook adds a preview card for this link below the post.',
+ placeholder: 'https://example.com/article',
required: false,
}),
caption: Property.LongText({
displayName: 'Caption',
+ description: 'Post text shown with the photo.',
required: false,
}),
photo: Property.ShortText({
- displayName: 'Photo',
- description: 'A URL we can access for the photo',
+ displayName: 'Photo URL',
+ description: 'Public URL of the image, so Facebook can download it.',
+ placeholder: 'https://example.com/photo.jpg',
required: true,
}),
title: Property.ShortText({
displayName: 'Title',
+ description: "Name of the video, shown on the Page's Videos tab.",
required: false,
}),
description: Property.LongText({
displayName: 'Description',
+ description: 'Post text shown with the video.',
required: false,
}),
video: Property.ShortText({
- displayName: 'Video',
- description: 'A URL we can access for the video (Limit: 1GB or 20 minutes)',
+ displayName: 'Video URL',
+ description: 'Public URL of the video file, up to 1 GB or 20 minutes.',
+ placeholder: 'https://example.com/video.mp4',
required: true,
}),
pageId: Property.ShortText({