Skip to content

πŸ“¨ The ultimate agentic social media scheduling tool πŸ€–

fix(instagram): map (#200) permission errors to a curated message too

Gilad Resisicd1e40dcc3cc
diff --git a/libraries/nestjs-libraries/src/integrations/social/instagram.provider.ts b/libraries/nestjs-libraries/src/integrations/social/instagram.provider.ts
index 1ab4c0915..e4c5b81a7 100644
--- a/libraries/nestjs-libraries/src/integrations/social/instagram.provider.ts
+++ b/libraries/nestjs-libraries/src/integrations/social/instagram.provider.ts
@@ -307,6 +307,14 @@ export class InstagramProvider
};
}
+ if (body.indexOf('(#200)') > -1) {
+ return {
+ type: 'bad-body' as const,
+ value:
+ 'Facebook rejected the post due to missing permissions. Make sure your Facebook account has full content access to the Page linked to this Instagram account, then reconnect the channel.',
+ };
+ }
+
if (body.indexOf('Not enough permissions to post') > -1) {
return {
type: 'bad-body' as const,