Skip to content

Commit

Permalink
up facebook graph api version
Browse files Browse the repository at this point in the history
  • Loading branch information
absorbb committed Dec 17, 2024
1 parent 3761e55 commit 26f79e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libs/core-functions/src/functions/facebook-conversions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ const FacebookConversionsApi: JitsuFunction<AnalyticsServerEvent, FacebookConver
]),
};

const baseUrl = `https://graph.facebook.com/v18.0/${ctx.props.pixelId}/events?access_token=`;
const baseUrl = `https://graph.facebook.com/v21.0/${ctx.props.pixelId}/events?access_token=`;
const payload = { data: [fbEvent] };
const fetchResult = await ctx.fetch(`${baseUrl}${ctx.props.accessToken}`, {
method: "POST",
Expand Down
2 changes: 1 addition & 1 deletion webapps/console/lib/server/syncs/mixpanel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export const mixpanelFacebookAdsSync: SyncFunction<AnyProps, FacebookCredentials
"adset_name",
"adset_id",
];
const baseUrl = `https://graph.facebook.com/v17.0/act_${source.credentials.account_ids[0]}/insights`;
const baseUrl = `https://graph.facebook.com/v21.0/act_${source.credentials.account_ids[0]}/insights`;
let nextPageUrl: string | undefined = undefined;
for (const day of Object.entries(daysToSync)
.filter(([day, val]) => val === null)
Expand Down

0 comments on commit 26f79e6

Please sign in to comment.