diff --git a/client/src/pages/image-editor.tsx b/client/src/pages/image-editor.tsx index aa4a96a..20fb3ca 100644 --- a/client/src/pages/image-editor.tsx +++ b/client/src/pages/image-editor.tsx @@ -18,7 +18,7 @@ import { useToast } from "@/hooks/use-toast"; interface Ribbon { enabled: boolean; - text: "Promo" | "Nouveauté" | "Arrivage"; + text: "Promo" | "Nouveauté" | "Arrivage" | "Stock limité"; color: "red" | "yellow"; position: "north_west" | "north_east"; } @@ -468,6 +468,10 @@ export default function ImageEditor() { +
+ + +
diff --git a/server/services/facebook.ts b/server/services/facebook.ts index 8cd7201..c9bd254 100644 --- a/server/services/facebook.ts +++ b/server/services/facebook.ts @@ -38,11 +38,20 @@ export class FacebookService { } if (postType === 'story') { - // Publish as story only + // Publish as story - one story per media if (mediaList.length === 0) { throw new Error('Stories require media (photo or video)'); } - return await this.publishStory(post, page, mediaList[0]); + + // Publish each media as a separate story + const storyIds: string[] = []; + for (const media of mediaList) { + const storyId = await this.publishStory(post, page, media); + storyIds.push(storyId); + } + + // Return all story IDs joined together + return storyIds.join(','); } else { // Default to feed // Count images only (videos not supported in multi-photo carousel)