π¨ The ultimate agentic social media scheduling tool π€
TypeScript nextjsopen-sourceopen-source-social-media-scheduling-toolosspostiz-cloudpostiz-hostedredisscheduling-toolsocial-media-scheduling-tooltypescript
feat: fix instagram analytics
Nevo Davidb6928138d2cf
diff --git a/libraries/nestjs-libraries/src/integrations/social/instagram.provider.ts b/libraries/nestjs-libraries/src/integrations/social/instagram.provider.tsindex 05bbb6ac4..e05686631 100644--- a/libraries/nestjs-libraries/src/integrations/social/instagram.provider.ts+++ b/libraries/nestjs-libraries/src/integrations/social/instagram.provider.ts@@ -755,7 +755,7 @@ export class InstagramProvider// Fetch media insights from Instagram Graph APIconst { data } = await (await this.fetch(- `https://${type}/v21.0/${postId}/insights?metric=impressions,reach,saved,likes,comments,shares&access_token=${accessToken}`+ `https://${type}/v21.0/${postId}/insights?metric=views,reach,saved,likes,comments,shares&access_token=${accessToken}`)).json();@@ -772,8 +772,8 @@ export class InstagramProviderlet label = '';switch (metric.name) {- case 'impressions':- label = 'Impressions';+ case 'views':+ label = 'Views';break;case 'reach':label = 'Reach';