From 40482026958a8bb1802036fd49b68cd2c0af3489 Mon Sep 17 00:00:00 2001 From: sbadoiu Date: Thu, 31 Oct 2024 16:18:34 +0000 Subject: [PATCH] use latest marketing api v21 --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index c38d5c5..21c2888 100644 --- a/src/index.ts +++ b/src/index.ts @@ -8,7 +8,7 @@ const sendEvent = async ( settings: ComponentSettings ) => { const property = payload.custom_data.property || settings.property - const graphEndpoint = `https://graph.facebook.com/v14.0/${property}/events` + const graphEndpoint = `https://graph.facebook.com/v21.0/${property}/events` const requestBody = { data: [payload],