Add Activepieces integration for workflow automation

- Add Activepieces fork with SmoothSchedule custom piece
- Create integrations app with Activepieces service layer
- Add embed token endpoint for iframe integration
- Create Automations page with embedded workflow builder
- Add sidebar visibility fix for embed mode
- Add list inactive customers endpoint to Public API
- Include SmoothSchedule triggers: event created/updated/cancelled
- Include SmoothSchedule actions: create/update/cancel events, list resources/services/customers

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
poduck
2025-12-18 22:59:37 -05:00
parent 9848268d34
commit 3aa7199503
16292 changed files with 1284892 additions and 4708 deletions

View File

@@ -0,0 +1,21 @@
{
"Facebook Pages": "Facebook Pages",
"Manage your Facebook pages to grow your business": "Manage your Facebook pages to grow your business",
"\nTo Obtain a Client ID and Client Secret:\n\n1. Go to https://developers.facebook.com/\n2. Register for a Facebook Developer account.\n3. Once login, click \"Make a new app\" button.\n4. Select \"Other\" for use cases.\n5. Choose \"Business\" as the type of app. \n6. Provide application details: custom name and associated email.\n7. Once your application is created, you need to add a new \"product\".\n8. Configure a new product of type \"Facebook Login Settings\".\n9. Default settings should be fine, you only need to provide t": "\nTo Obtain a Client ID and Client Secret:\n\n1. Go to https://developers.facebook.com/\n2. Register for a Facebook Developer account.\n3. Once login, click \"Make a new app\" button.\n4. Select \"Other\" for use cases.\n5. Choose \"Business\" as the type of app. \n6. Provide application details: custom name and associated email.\n7. Once your application is created, you need to add a new \"product\".\n8. Configure a new product of type \"Facebook Login Settings\".\n9. Default settings should be fine, you only need to provide the Redirect URL in \"Valid OAuth Redirect URIs\" and your domain name in \"Allowed Domains for the JavaScript SDK\".\n10. Finally, get your application ID and application secret from your app dashboard in Settings > Basic.\n",
"Create Page Post": "Create Page Post",
"Create Page Photo": "Create Page Photo",
"Create Page Video": "Create Page Video",
"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",
"Page": "Page",
"Message": "Message",
"Link": "Link",
"Photo": "Photo",
"Caption": "Caption",
"Video": "Video",
"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)"
}

View File

@@ -0,0 +1,20 @@
{
"Manage your Facebook pages to grow your business": "Verwalten Sie Ihre Facebook-Seiten, um Ihr Geschäft zu wachsen",
"\nTo Obtain a Client ID and Client Secret:\n\n1. Go to https://developers.facebook.com/\n2. Register for a Facebook Developer account.\n3. Once login, click \"Make a new app\" button.\n4. Select \"Other\" for use cases.\n5. Choose \"Business\" as the type of app. \n6. Provide application details: custom name and associated email.\n7. Once your application is created, you need to add a new \"product\".\n8. Configure a new product of type \"Facebook Login Settings\".\n9. Default settings should be fine, you only need to provide t": "\num eine Client-ID und Client-Geheimnis zu erhalten:\n. Gehe zu https://developers.facebook. om/\n2. Registrieren Sie sich für ein Facebook-Entwickler-Konto.\n3. Sobald Sie sich einloggen, klicken Sie auf \"Neue App erstellen\".\n4. Wählen Sie \"Andere\" für Anwendungsfälle.\n5. Wählen Sie \"Business\" als Art der App aus. \n6. Geben Sie Anwendungsdetails an: benutzerdefinierter Name und zugeordnete E-Mail.\n7. Sobald Ihre Anwendung erstellt wurde, müssen Sie ein neues \"Produkt\" hinzufügen.\n8. Konfigurieren Sie ein neues Produkt vom Typ \"Facebook-Login-Einstellungen\".\n9. Standardeinstellungen sollten in Ordnung sein, Sie müssen nur die Redirect URL in \"Valid OAuth Redirect URIs\" und Ihren Domainnamen in \"Allowed Domains for the JavaScript SDK\" angeben.\n10. Schließlich erhalten Sie Ihre Anwendungs-ID und Anwendung unter Einstellungen > Basic. \n",
"Create Page Post": "Seitenbeitrag erstellen",
"Create Page Photo": "Seitenfoto erstellen",
"Create Page Video": "Seitenvideo erstellen",
"Create a post on a Facebook Page you manage": "Erstellen Sie einen Beitrag auf einer Facebook-Seite, die Sie verwalten",
"Create a photo on a Facebook Page you manage": "Erstellen Sie ein Foto auf einer Facebook-Seite, die Sie verwalten",
"Create a video on a Facebook Page you manage": "Erstellen Sie ein Video auf einer Facebook-Seite, die Sie verwalten",
"Page": "Seite",
"Message": "Nachricht",
"Link": "Link",
"Photo": "Foto",
"Caption": "Überschrift",
"Video": "Video",
"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)"
}

View File

@@ -0,0 +1,20 @@
{
"Manage your Facebook pages to grow your business": "Administra tus páginas de Facebook para hacer crecer tu negocio",
"\nTo Obtain a Client ID and Client Secret:\n\n1. Go to https://developers.facebook.com/\n2. Register for a Facebook Developer account.\n3. Once login, click \"Make a new app\" button.\n4. Select \"Other\" for use cases.\n5. Choose \"Business\" as the type of app. \n6. Provide application details: custom name and associated email.\n7. Once your application is created, you need to add a new \"product\".\n8. Configure a new product of type \"Facebook Login Settings\".\n9. Default settings should be fine, you only need to provide t": "\nTo Obtain a Client ID and Client Secret:\n\n1. Go to https://developers.facebook.com/\n2. Register for a Facebook Developer account.\n3. Once login, click \"Make a new app\" button.\n4. Select \"Other\" for use cases.\n5. Choose \"Business\" as the type of app. \n6. Provide application details: custom name and associated email.\n7. Once your application is created, you need to add a new \"product\".\n8. Configure a new product of type \"Facebook Login Settings\".\n9. Default settings should be fine, you only need to provide the Redirect URL in \"Valid OAuth Redirect URIs\" and your domain name in \"Allowed Domains for the JavaScript SDK\".\n10. Finally, get your application ID and application secret from your app dashboard in Settings > Basic.\n",
"Create Page Post": "Crear publicación de página",
"Create Page Photo": "Crear foto de página",
"Create Page Video": "Crear Video de Página",
"Create a post on a Facebook Page you manage": "Crea una publicación en una página de Facebook que administras",
"Create a photo on a Facebook Page you manage": "Crea una foto en una página de Facebook que administras",
"Create a video on a Facebook Page you manage": "Crea un vídeo en una página de Facebook que administras",
"Page": "Pgina",
"Message": "Mensaje",
"Link": "Enlace",
"Photo": "Foto",
"Caption": "Leyenda",
"Video": "Vídeo",
"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)"
}

View File

@@ -0,0 +1,20 @@
{
"Manage your Facebook pages to grow your business": "Gérez vos pages Facebook pour développer votre entreprise",
"\nTo Obtain a Client ID and Client Secret:\n\n1. Go to https://developers.facebook.com/\n2. Register for a Facebook Developer account.\n3. Once login, click \"Make a new app\" button.\n4. Select \"Other\" for use cases.\n5. Choose \"Business\" as the type of app. \n6. Provide application details: custom name and associated email.\n7. Once your application is created, you need to add a new \"product\".\n8. Configure a new product of type \"Facebook Login Settings\".\n9. Default settings should be fine, you only need to provide t": "\nTo Obtain a Client ID and Client Secret:\n\n1. Go to https://developers.facebook.com/\n2. Register for a Facebook Developer account.\n3. Once login, click \"Make a new app\" button.\n4. Select \"Other\" for use cases.\n5. Choose \"Business\" as the type of app. \n6. Provide application details: custom name and associated email.\n7. Once your application is created, you need to add a new \"product\".\n8. Configure a new product of type \"Facebook Login Settings\".\n9. Default settings should be fine, you only need to provide the Redirect URL in \"Valid OAuth Redirect URIs\" and your domain name in \"Allowed Domains for the JavaScript SDK\".\n10. Finally, get your application ID and application secret from your app dashboard in Settings > Basic.\n",
"Create Page Post": "Créer un message de page",
"Create Page Photo": "Créer une photo de la page",
"Create Page Video": "Créer une vidéo de la page",
"Create a post on a Facebook Page you manage": "Créer un message sur une page Facebook que vous gérez",
"Create a photo on a Facebook Page you manage": "Créer une photo sur une page Facebook que vous gérez",
"Create a video on a Facebook Page you manage": "Créez une vidéo sur une page Facebook que vous gérez",
"Page": "Page",
"Message": "Message",
"Link": "Lier",
"Photo": "Photo",
"Caption": "Légende",
"Video": "Vidéo",
"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)"
}

View File

@@ -0,0 +1,21 @@
{
"Facebook Pages": "Facebook Pages",
"Manage your Facebook pages to grow your business": "Manage your Facebook pages to grow your business",
"\nTo Obtain a Client ID and Client Secret:\n\n1. Go to https://developers.facebook.com/\n2. Register for a Facebook Developer account.\n3. Once login, click \"Make a new app\" button.\n4. Select \"Other\" for use cases.\n5. Choose \"Business\" as the type of app. \n6. Provide application details: custom name and associated email.\n7. Once your application is created, you need to add a new \"product\".\n8. Configure a new product of type \"Facebook Login Settings\".\n9. Default settings should be fine, you only need to provide t": "\nTo Obtain a Client ID and Client Secret:\n\n1. Go to https://developers.facebook.com/\n2. Register for a Facebook Developer account.\n3. Once login, click \"Make a new app\" button.\n4. Select \"Other\" for use cases.\n5. Choose \"Business\" as the type of app. \n6. Provide application details: custom name and associated email.\n7. Once your application is created, you need to add a new \"product\".\n8. Configure a new product of type \"Facebook Login Settings\".\n9. Default settings should be fine, you only need to provide the Redirect URL in \"Valid OAuth Redirect URIs\" and your domain name in \"Allowed Domains for the JavaScript SDK\".\n10. Finally, get your application ID and application secret from your app dashboard in Settings > Basic.\n",
"Create Page Post": "Create Page Post",
"Create Page Photo": "Create Page Photo",
"Create Page Video": "Create Page Video",
"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",
"Page": "Page",
"Message": "Message",
"Link": "Link",
"Photo": "Photo",
"Caption": "Caption",
"Video": "Video",
"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)"
}

View File

@@ -0,0 +1,21 @@
{
"Facebook Pages": "Facebook Pages",
"Manage your Facebook pages to grow your business": "Manage your Facebook pages to grow your business",
"\nTo Obtain a Client ID and Client Secret:\n\n1. Go to https://developers.facebook.com/\n2. Register for a Facebook Developer account.\n3. Once login, click \"Make a new app\" button.\n4. Select \"Other\" for use cases.\n5. Choose \"Business\" as the type of app. \n6. Provide application details: custom name and associated email.\n7. Once your application is created, you need to add a new \"product\".\n8. Configure a new product of type \"Facebook Login Settings\".\n9. Default settings should be fine, you only need to provide t": "\nTo Obtain a Client ID and Client Secret:\n\n1. Go to https://developers.facebook.com/\n2. Register for a Facebook Developer account.\n3. Once login, click \"Make a new app\" button.\n4. Select \"Other\" for use cases.\n5. Choose \"Business\" as the type of app. \n6. Provide application details: custom name and associated email.\n7. Once your application is created, you need to add a new \"product\".\n8. Configure a new product of type \"Facebook Login Settings\".\n9. Default settings should be fine, you only need to provide the Redirect URL in \"Valid OAuth Redirect URIs\" and your domain name in \"Allowed Domains for the JavaScript SDK\".\n10. Finally, get your application ID and application secret from your app dashboard in Settings > Basic.\n",
"Create Page Post": "Create Page Post",
"Create Page Photo": "Create Page Photo",
"Create Page Video": "Create Page Video",
"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",
"Page": "Page",
"Message": "Message",
"Link": "Link",
"Photo": "Photo",
"Caption": "Caption",
"Video": "Video",
"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)"
}

View File

@@ -0,0 +1,20 @@
{
"Manage your Facebook pages to grow your business": "ビジネスを成長させるためにFacebookページを管理する",
"\nTo Obtain a Client ID and Client Secret:\n\n1. Go to https://developers.facebook.com/\n2. Register for a Facebook Developer account.\n3. Once login, click \"Make a new app\" button.\n4. Select \"Other\" for use cases.\n5. Choose \"Business\" as the type of app. \n6. Provide application details: custom name and associated email.\n7. Once your application is created, you need to add a new \"product\".\n8. Configure a new product of type \"Facebook Login Settings\".\n9. Default settings should be fine, you only need to provide t": "\nTo Obtain a Client ID and Client Secret:\n\n1. Go to https://developers.facebook.com/\n2. Register for a Facebook Developer account.\n3. Once login, click \"Make a new app\" button.\n4. Select \"Other\" for use cases.\n5. Choose \"Business\" as the type of app. \n6. Provide application details: custom name and associated email.\n7. Once your application is created, you need to add a new \"product\".\n8. Configure a new product of type \"Facebook Login Settings\".\n9. Default settings should be fine, you only need to provide the Redirect URL in \"Valid OAuth Redirect URIs\" and your domain name in \"Allowed Domains for the JavaScript SDK\".\n10. Finally, get your application ID and application secret from your app dashboard in Settings > Basic.\n",
"Create Page Post": "ページの投稿を作成",
"Create Page Photo": "ページ写真を作成",
"Create Page Video": "ページビデオを作成",
"Create a post on a Facebook Page you manage": "管理している Facebook ページに投稿を作成する",
"Create a photo on a Facebook Page you manage": "管理しているFacebookページに写真を作成する",
"Create a video on a Facebook Page you manage": "管理する Facebook ページに動画を作成する",
"Page": "ページ",
"Message": "メッセージ",
"Link": "リンク",
"Photo": "写真",
"Caption": "図表番号",
"Video": "ビデオ",
"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分"
}

View File

@@ -0,0 +1,20 @@
{
"Manage your Facebook pages to grow your business": "Beheer uw Facebook-pagina's om uw bedrijf te laten groeien",
"\nTo Obtain a Client ID and Client Secret:\n\n1. Go to https://developers.facebook.com/\n2. Register for a Facebook Developer account.\n3. Once login, click \"Make a new app\" button.\n4. Select \"Other\" for use cases.\n5. Choose \"Business\" as the type of app. \n6. Provide application details: custom name and associated email.\n7. Once your application is created, you need to add a new \"product\".\n8. Configure a new product of type \"Facebook Login Settings\".\n9. Default settings should be fine, you only need to provide t": "\nOm een Client ID en Client Secret:\n. Ga naar https://developers.facebook. om/\n2. Registreer voor een Facebook Developer account.\n3. Eenmaal ingelogd, klik op de knop \"Maak een nieuwe app\".\n4. Selecteer \"Andere\" voor gebruik gevallen.\n5. Kies \"Business\" als het type app. \n6. Geef de applicatie details: aangepaste naam en bijbehorende e-mail.\n7. Zodra uw applicatie is aangemaakt, moet u een nieuw \"product\" toevoegen.\n8. Configureer een nieuw product van het type \"Facebook Login Settings\".\n9. Standaard instellingen zijn prima, u hoeft alleen de Redirect URL in \"Geldige OAuth Redirect URI\" en uw domeinnaam in \"Toegestane Domains voor de JavaScript SDK\" in te geven.\n10. Haal ten slotte uw applicatie ID en applicatie geheim van uw app dashboard in Instellingen > Basic. \n",
"Create Page Post": "Maak pagina post",
"Create Page Photo": "Maak pagina foto",
"Create Page Video": "Maak pagina video",
"Create a post on a Facebook Page you manage": "Maak een bericht op een Facebook-pagina die u beheert",
"Create a photo on a Facebook Page you manage": "Maak een foto op een Facebook-pagina die u beheert",
"Create a video on a Facebook Page you manage": "Maak een video op een Facebook-pagina die u beheert",
"Page": "Pagina",
"Message": "bericht",
"Link": "Koppeling",
"Photo": "Foto",
"Caption": "Onderschrift",
"Video": "Video",
"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)"
}

View File

@@ -0,0 +1,20 @@
{
"Manage your Facebook pages to grow your business": "Gerencie suas páginas do Facebook para expandir seus negócios",
"\nTo Obtain a Client ID and Client Secret:\n\n1. Go to https://developers.facebook.com/\n2. Register for a Facebook Developer account.\n3. Once login, click \"Make a new app\" button.\n4. Select \"Other\" for use cases.\n5. Choose \"Business\" as the type of app. \n6. Provide application details: custom name and associated email.\n7. Once your application is created, you need to add a new \"product\".\n8. Configure a new product of type \"Facebook Login Settings\".\n9. Default settings should be fine, you only need to provide t": "\nPara obter um ID de cliente e o segredo de cliente:\n. Vá para https://developers.facebook. O/\n2. Registre-se para uma conta de desenvolvedor do Facebook.\n3. Uma vez login, clique no botão \"Criar um novo aplicativo\".\n4. Selecione \"Outros\" para casos de uso.\n5. Escolha \"Negócios\" como o tipo de aplicativo. \n6. Forneça detalhes do aplicativo: nome personalizado e e-mail associado.\n7. Uma vez que sua aplicação é criada, você precisa adicionar um novo \"produto\".\n8. Configure um novo produto do tipo \"Configurações do Login do Facebook\".\n9. As configurações padrão devem estar corretas, você só precisa fornecer a URL de redirecionamento em \"URLs válidas de redirecionamento OAuth\" e seu nome de domínio em \"Domínios permitidos para o JavaScript SDK\".\n10. Finalmente, obtenha o ID e o segredo do aplicativo no painel do seu aplicativo em Configurações > Basic. \n",
"Create Page Post": "Criar publicação de página",
"Create Page Photo": "Criar foto da página",
"Create Page Video": "Criar vídeo de página",
"Create a post on a Facebook Page you manage": "Crie uma postagem em uma página do Facebook que você gerencia",
"Create a photo on a Facebook Page you manage": "Crie uma foto em uma página do Facebook que você gerencia",
"Create a video on a Facebook Page you manage": "Crie um vídeo em uma página do Facebook que você gerencia",
"Page": "Página",
"Message": "mensagem",
"Link": "Vincular",
"Photo": "Fotografia",
"Caption": "Legenda",
"Video": "Vídeo",
"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)"
}

View File

@@ -0,0 +1,21 @@
{
"Facebook Pages": "Страницы Facebook",
"Manage your Facebook pages to grow your business": "Управляйте своими страницами в Facebook, чтобы развивать свой бизнес",
"\nTo Obtain a Client ID and Client Secret:\n\n1. Go to https://developers.facebook.com/\n2. Register for a Facebook Developer account.\n3. Once login, click \"Make a new app\" button.\n4. Select \"Other\" for use cases.\n5. Choose \"Business\" as the type of app. \n6. Provide application details: custom name and associated email.\n7. Once your application is created, you need to add a new \"product\".\n8. Configure a new product of type \"Facebook Login Settings\".\n9. Default settings should be fine, you only need to provide t": "\nЧтобы получить ID клиента и секрет клиента:\n. Перейдите на https://developers.facebook. om/\n2. Зарегистрируйте аккаунт разработчика Facebook.\n3. После входа нажмите кнопку \"Создать новое приложение\".\n4. Выберите \"Other\" для использования вариантов.\n5. Выберите \"Business\" в качестве типа приложения. \n6. Предоставьте детали приложения: настраиваемое имя и связанный с ним адрес электронной почты.\n7. После создания заявки необходимо добавить новый товар.\nнастройте новый продукт типа \"Facebook Логин\".\n\n. Настройки по умолчанию должны быть хорошими, вам нужно предоставить URL-адрес перенаправления только в \"Valid OAuth Redirect URI\" и в \"Допустимые домены для SDK JavaScript\".\n10. Наконец, получите идентификатор приложения и секрет приложения из панели управления в Настройках > Базовые. \n",
"Create Page Post": "Создать страницу",
"Create Page Photo": "Создать фото страницы",
"Create Page Video": "Создать видео на странице",
"Create a post on a Facebook Page you manage": "Создать пост на странице Facebook, которую вы управляете",
"Create a photo on a Facebook Page you manage": "Создать фото на странице Facebook, которую вы управляете",
"Create a video on a Facebook Page you manage": "Создать видео на странице Facebook, которую вы управляете",
"Page": "Страница",
"Message": "Сообщение",
"Link": "Ссылка",
"Photo": "Фото",
"Caption": "Подпись",
"Video": "Видео",
"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 минут)"
}

View File

@@ -0,0 +1,20 @@
{
"Manage your Facebook pages to grow your business": "Manage your Facebook pages to grow your business",
"\nTo Obtain a Client ID and Client Secret:\n\n1. Go to https://developers.facebook.com/\n2. Register for a Facebook Developer account.\n3. Once login, click \"Make a new app\" button.\n4. Select \"Other\" for use cases.\n5. Choose \"Business\" as the type of app. \n6. Provide application details: custom name and associated email.\n7. Once your application is created, you need to add a new \"product\".\n8. Configure a new product of type \"Facebook Login Settings\".\n9. Default settings should be fine, you only need to provide t": "\nTo Obtain a Client ID and Client Secret:\n\n1. Go to https://developers.facebook.com/\n2. Register for a Facebook Developer account.\n3. Once login, click \"Make a new app\" button.\n4. Select \"Other\" for use cases.\n5. Choose \"Business\" as the type of app. \n6. Provide application details: custom name and associated email.\n7. Once your application is created, you need to add a new \"product\".\n8. Configure a new product of type \"Facebook Login Settings\".\n9. Default settings should be fine, you only need to provide the Redirect URL in \"Valid OAuth Redirect URIs\" and your domain name in \"Allowed Domains for the JavaScript SDK\".\n10. Finally, get your application ID and application secret from your app dashboard in Settings > Basic.\n",
"Create Page Post": "Create Page Post",
"Create Page Photo": "Create Page Photo",
"Create Page Video": "Create Page Video",
"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",
"Page": "Page",
"Message": "Message",
"Link": "Link",
"Photo": "Photo",
"Caption": "Caption",
"Video": "Video",
"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)"
}

View File

@@ -0,0 +1,21 @@
{
"Facebook Pages": "Facebook Pages",
"Manage your Facebook pages to grow your business": "Manage your Facebook pages to grow your business",
"\nTo Obtain a Client ID and Client Secret:\n\n1. Go to https://developers.facebook.com/\n2. Register for a Facebook Developer account.\n3. Once login, click \"Make a new app\" button.\n4. Select \"Other\" for use cases.\n5. Choose \"Business\" as the type of app. \n6. Provide application details: custom name and associated email.\n7. Once your application is created, you need to add a new \"product\".\n8. Configure a new product of type \"Facebook Login Settings\".\n9. Default settings should be fine, you only need to provide t": "\nTo Obtain a Client ID and Client Secret:\n\n1. Go to https://developers.facebook.com/\n2. Register for a Facebook Developer account.\n3. Once login, click \"Make a new app\" button.\n4. Select \"Other\" for use cases.\n5. Choose \"Business\" as the type of app. \n6. Provide application details: custom name and associated email.\n7. Once your application is created, you need to add a new \"product\".\n8. Configure a new product of type \"Facebook Login Settings\".\n9. Default settings should be fine, you only need to provide the Redirect URL in \"Valid OAuth Redirect URIs\" and your domain name in \"Allowed Domains for the JavaScript SDK\".\n10. Finally, get your application ID and application secret from your app dashboard in Settings > Basic.\n",
"Create Page Post": "Create Page Post",
"Create Page Photo": "Create Page Photo",
"Create Page Video": "Create Page Video",
"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",
"Page": "Page",
"Message": "Message",
"Link": "Link",
"Photo": "Photo",
"Caption": "Caption",
"Video": "Video",
"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)"
}

View File

@@ -0,0 +1,20 @@
{
"Manage your Facebook pages to grow your business": "Manage your Facebook pages to grow your business",
"\nTo Obtain a Client ID and Client Secret:\n\n1. Go to https://developers.facebook.com/\n2. Register for a Facebook Developer account.\n3. Once login, click \"Make a new app\" button.\n4. Select \"Other\" for use cases.\n5. Choose \"Business\" as the type of app. \n6. Provide application details: custom name and associated email.\n7. Once your application is created, you need to add a new \"product\".\n8. Configure a new product of type \"Facebook Login Settings\".\n9. Default settings should be fine, you only need to provide t": "\nTo Obtain a Client ID and Client Secret:\n\n1. Go to https://developers.facebook.com/\n2. Register for a Facebook Developer account.\n3. Once login, click \"Make a new app\" button.\n4. Select \"Other\" for use cases.\n5. Choose \"Business\" as the type of app. \n6. Provide application details: custom name and associated email.\n7. Once your application is created, you need to add a new \"product\".\n8. Configure a new product of type \"Facebook Login Settings\".\n9. Default settings should be fine, you only need to provide the Redirect URL in \"Valid OAuth Redirect URIs\" and your domain name in \"Allowed Domains for the JavaScript SDK\".\n10. Finally, get your application ID and application secret from your app dashboard in Settings > Basic.\n",
"Create Page Post": "Create Page Post",
"Create Page Photo": "Create Page Photo",
"Create Page Video": "Create Page Video",
"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",
"Page": "Page",
"Message": "Message",
"Link": "Link",
"Photo": "Photo",
"Caption": "Caption",
"Video": "Video",
"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)"
}

View File

@@ -0,0 +1,47 @@
import { PieceAuth, createPiece } from '@activepieces/pieces-framework';
import { PieceCategory } from '@activepieces/shared';
import { createPhotoPost } from './lib/actions/create-photo-post';
import { createPost } from './lib/actions/create-post';
import { createVideoPost } from './lib/actions/create-video-post';
const markdown = `
To Obtain a Client ID and Client Secret:
1. Go to https://developers.facebook.com/
2. Register for a Facebook Developer account.
3. Once login, click "Make a new app" button.
4. Select "Other" for use cases.
5. Choose "Business" as the type of app.
6. Provide application details: custom name and associated email.
7. Once your application is created, you need to add a new "product".
8. Configure a new product of type "Facebook Login Settings".
9. Default settings should be fine, you only need to provide the Redirect URL in "Valid OAuth Redirect URIs" and your domain name in "Allowed Domains for the JavaScript SDK".
10. Finally, get your application ID and application secret from your app dashboard in Settings > Basic.
`;
export const facebookPagesAuth = PieceAuth.OAuth2({
description: markdown,
authUrl: 'https://graph.facebook.com/oauth/authorize',
tokenUrl: 'https://graph.facebook.com/oauth/access_token',
required: true,
scope: [
'pages_show_list',
'pages_manage_posts',
'business_management',
'pages_read_engagement',
],
});
export const facebookPages = createPiece({
displayName: 'Facebook Pages',
description: 'Manage your Facebook pages to grow your business',
minimumSupportedRelease: '0.30.0',
logoUrl: 'https://cdn.activepieces.com/pieces/facebook.png',
categories: [PieceCategory.MARKETING],
authors: ["kishanprmr","MoShizzle","khaledmashaly","abuaboud"],
auth: facebookPagesAuth,
actions: [createPost, createPhotoPost, createVideoPost],
triggers: [],
});

View File

@@ -0,0 +1,28 @@
import { createAction } from '@activepieces/pieces-framework';
import { facebookPagesCommon, FacebookPageDropdown } from '../common/common';
import { facebookPagesAuth } from '../..';
export const createPhotoPost = createAction({
auth: facebookPagesAuth,
name: 'create_photo_post',
displayName: 'Create Page Photo',
description: 'Create a photo on a Facebook Page you manage',
props: {
page: facebookPagesCommon.page,
photo: facebookPagesCommon.photo,
caption: facebookPagesCommon.caption,
},
async run(context) {
const page: FacebookPageDropdown = context.propsValue.page!;
const result = await facebookPagesCommon.createPhotoPost(
page,
context.propsValue.caption,
context.propsValue.photo
);
return result;
},
});

View File

@@ -0,0 +1,26 @@
import { createAction } from '@activepieces/pieces-framework';
import { facebookPagesCommon, FacebookPageDropdown } from '../common/common';
import { facebookPagesAuth } from '../..';
export const createPost = createAction({
auth: facebookPagesAuth,
name: 'create_post',
displayName: 'Create Page Post',
description: 'Create a post on a Facebook Page you manage',
props: {
page: facebookPagesCommon.page,
message: facebookPagesCommon.message,
link: facebookPagesCommon.link,
},
async run(context) {
const page: FacebookPageDropdown = context.propsValue.page!;
const result = await facebookPagesCommon.createPost(
page,
context.propsValue.message,
context.propsValue.link
);
return result;
},
});

View File

@@ -0,0 +1,28 @@
import { createAction } from '@activepieces/pieces-framework';
import { FacebookPageDropdown, facebookPagesCommon } from '../common/common';
import { facebookPagesAuth } from '../..';
export const createVideoPost = createAction({
auth: facebookPagesAuth,
name: 'create_video_post',
displayName: 'Create Page Video',
description: 'Create a video on a Facebook Page you manage',
props: {
page: facebookPagesCommon.page,
video: facebookPagesCommon.video,
title: facebookPagesCommon.title,
description: facebookPagesCommon.description,
},
async run(context) {
const page: FacebookPageDropdown = context.propsValue.page!;
const result = await facebookPagesCommon.createVideoPost(
page,
context.propsValue.title,
context.propsValue.description,
context.propsValue.video
);
return result;
},
});

View File

@@ -0,0 +1,165 @@
import {
HttpMethod,
httpClient,
getAccessTokenOrThrow,
} from '@activepieces/pieces-common';
import { OAuth2PropertyValue, Property } from '@activepieces/pieces-framework';
import { facebookPagesAuth } from '../..';
export const facebookPagesCommon = {
baseUrl: 'https://graph.facebook.com/v17.0',
page: Property.Dropdown<FacebookPageDropdown,true,typeof facebookPagesAuth>({
auth: facebookPagesAuth,
displayName: 'Page',
required: true,
refreshers: [],
options: async ({ auth }) => {
if (!auth) {
return {
disabled: true,
options: [],
placeholder: 'Connect your account',
};
}
try {
const accessToken: string = getAccessTokenOrThrow(
auth
);
const pages: any[] = (
await facebookPagesCommon.getPages(accessToken)
).map((page: FacebookPage) => {
return {
label: page.name,
value: {
id: page.id,
accessToken: page.access_token,
},
};
});
return {
options: pages,
placeholder: 'Choose a page',
};
} catch (e) {
console.debug(e);
return {
disabled: true,
options: [],
placeholder: 'Connect your account',
};
}
},
}),
message: Property.LongText({
displayName: 'Message',
required: true,
}),
link: Property.ShortText({
displayName: 'Link',
required: false,
}),
caption: Property.LongText({
displayName: 'Caption',
required: false,
}),
photo: Property.ShortText({
displayName: 'Photo',
description: 'A URL we can access for the photo',
required: true,
}),
title: Property.ShortText({
displayName: 'Title',
required: false,
}),
description: Property.LongText({
displayName: 'Description',
required: false,
}),
video: Property.ShortText({
displayName: 'Video',
description: 'A URL we can access for the video (Limit: 1GB or 20 minutes)',
required: true,
}),
getPages: async (accessToken: string) => {
const response = await httpClient.sendRequest({
method: HttpMethod.GET,
url: `${facebookPagesCommon.baseUrl}/me/accounts?access_token=${accessToken}`,
});
return response.body.data;
},
createPost: async (
page: FacebookPageDropdown,
message: string,
link: string | undefined
) => {
const response = await httpClient.sendRequest({
method: HttpMethod.POST,
url: `${facebookPagesCommon.baseUrl}/${page.id}/feed`,
body: {
access_token: page.accessToken,
message: message,
link: link,
},
});
return response.body;
},
createPhotoPost: async (
page: FacebookPageDropdown,
caption: string | undefined,
photo: string
) => {
const response = await httpClient.sendRequest({
method: HttpMethod.POST,
url: `${facebookPagesCommon.baseUrl}/${page.id}/photos`,
body: {
access_token: page.accessToken,
url: photo,
caption: caption,
},
});
return response.body;
},
createVideoPost: async (
page: FacebookPageDropdown,
title: string | undefined,
description: string | undefined,
video: string
) => {
const response = await httpClient.sendRequest({
method: HttpMethod.POST,
url: `${facebookPagesCommon.baseUrl}/${page.id}/videos`,
body: {
access_token: page.accessToken,
title: title,
description: description,
file_url: video,
},
});
return response.body;
},
};
export interface FacebookPage {
id: string;
name: string;
category: string;
category_list: string[];
access_token: string;
tasks: string[];
}
export interface FacebookPageDropdown {
id: string;
accessToken: string;
}