Skip to content

Commit

Permalink
use latest marketing api v21
Browse files Browse the repository at this point in the history
  • Loading branch information
simonabadoiu committed Oct 31, 2024
1 parent ae8d1e2 commit 4048202
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit 4048202

Please sign in to comment.