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],