Skip to content

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

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

Gilad Resisifa69f42e35b9
diff --git a/libraries/nestjs-libraries/src/integrations/social/facebook.provider.ts b/libraries/nestjs-libraries/src/integrations/social/facebook.provider.ts
index 5ade76092..6f082c052 100644
--- a/libraries/nestjs-libraries/src/integrations/social/facebook.provider.ts
+++ b/libraries/nestjs-libraries/src/integrations/social/facebook.provider.ts
@@ -81,6 +81,14 @@ export class FacebookProvider extends SocialAbstract implements SocialProvider {
};
}
+ 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, then reconnect the channel.',
+ };
+ }
+
if (body.indexOf('1366046') > -1) {
return {
type: 'bad-body' as const,