Skip to content

Commit

Permalink
chore: update facebook pixel graph api version to v17.0 (#2334)
Browse files Browse the repository at this point in the history
  • Loading branch information
yashasvibajpai authored Jul 6, 2023
1 parent ddc2f3f commit ee7ee3e
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 37 deletions.
2 changes: 1 addition & 1 deletion src/v0/destinations/facebook_pixel/transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const responseBuilderSimple = (message, category, destination, categoryToContent
} = Config;
const integrationsObj = getIntegrationsObj(message, 'fb_pixel');

const endpoint = `https://graph.facebook.com/v16.0/${pixelId}/events?access_token=${accessToken}`;
const endpoint = `https://graph.facebook.com/v17.0/${pixelId}/events?access_token=${accessToken}`;

const userData = fetchUserData(message, Config);

Expand Down
68 changes: 34 additions & 34 deletions test/__tests__/data/facebook_pixel_output.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "1",
"type": "REST",
"method": "POST",
"endpoint": "https://graph.facebook.com/v16.0/dfgdfgdgd/events?access_token=09876",
"endpoint": "https://graph.facebook.com/v17.0/dfgdfgdgd/events?access_token=09876",
"headers": {},
"params": {},
"body": {
Expand Down Expand Up @@ -38,7 +38,7 @@
"version": "1",
"type": "REST",
"method": "POST",
"endpoint": "https://graph.facebook.com/v16.0/dfgdfgdgd/events?access_token=09876",
"endpoint": "https://graph.facebook.com/v17.0/dfgdfgdgd/events?access_token=09876",
"headers": {},
"params": {},
"body": {
Expand All @@ -57,7 +57,7 @@
"version": "1",
"type": "REST",
"method": "POST",
"endpoint": "https://graph.facebook.com/v16.0/dfgdfgdgd/events?access_token=09876",
"endpoint": "https://graph.facebook.com/v17.0/dfgdfgdgd/events?access_token=09876",
"headers": {},
"params": {},
"body": {
Expand All @@ -76,7 +76,7 @@
"version": "1",
"type": "REST",
"method": "POST",
"endpoint": "https://graph.facebook.com/v16.0/dfgdfgdgd/events?access_token=09876",
"endpoint": "https://graph.facebook.com/v17.0/dfgdfgdgd/events?access_token=09876",
"headers": {},
"params": {},
"body": {
Expand All @@ -95,7 +95,7 @@
"version": "1",
"type": "REST",
"method": "POST",
"endpoint": "https://graph.facebook.com/v16.0/dfgdfgdgd/events?access_token=09876",
"endpoint": "https://graph.facebook.com/v17.0/dfgdfgdgd/events?access_token=09876",
"headers": {},
"params": {},
"body": {
Expand All @@ -114,7 +114,7 @@
"version": "1",
"type": "REST",
"method": "POST",
"endpoint": "https://graph.facebook.com/v16.0/dfgdfgdgd/events?access_token=09876",
"endpoint": "https://graph.facebook.com/v17.0/dfgdfgdgd/events?access_token=09876",
"headers": {},
"params": {},
"body": {
Expand All @@ -133,7 +133,7 @@
"version": "1",
"type": "REST",
"method": "POST",
"endpoint": "https://graph.facebook.com/v16.0/dfgdfgdgd/events?access_token=09876",
"endpoint": "https://graph.facebook.com/v17.0/dfgdfgdgd/events?access_token=09876",
"headers": {},
"params": {},
"body": {
Expand All @@ -152,7 +152,7 @@
"version": "1",
"type": "REST",
"method": "POST",
"endpoint": "https://graph.facebook.com/v16.0/dfgdfgdgd/events?access_token=09876",
"endpoint": "https://graph.facebook.com/v17.0/dfgdfgdgd/events?access_token=09876",
"headers": {},
"params": {},
"body": {
Expand All @@ -171,7 +171,7 @@
"version": "1",
"type": "REST",
"method": "POST",
"endpoint": "https://graph.facebook.com/v16.0/dfgdfgdgd/events?access_token=09876",
"endpoint": "https://graph.facebook.com/v17.0/dfgdfgdgd/events?access_token=09876",
"headers": {},
"params": {},
"body": {
Expand All @@ -190,7 +190,7 @@
"version": "1",
"type": "REST",
"method": "POST",
"endpoint": "https://graph.facebook.com/v16.0/dfgdfgdgd/events?access_token=09876",
"endpoint": "https://graph.facebook.com/v17.0/dfgdfgdgd/events?access_token=09876",
"headers": {},
"params": {},
"body": {
Expand All @@ -209,7 +209,7 @@
"version": "1",
"type": "REST",
"method": "POST",
"endpoint": "https://graph.facebook.com/v16.0/dfgdfgdgd/events?access_token=09876",
"endpoint": "https://graph.facebook.com/v17.0/dfgdfgdgd/events?access_token=09876",
"headers": {},
"params": {},
"body": {
Expand All @@ -228,7 +228,7 @@
"version": "1",
"type": "REST",
"method": "POST",
"endpoint": "https://graph.facebook.com/v16.0/dfgdfgdgd/events?access_token=09876",
"endpoint": "https://graph.facebook.com/v17.0/dfgdfgdgd/events?access_token=09876",
"headers": {},
"params": {},
"body": {
Expand All @@ -247,7 +247,7 @@
"version": "1",
"type": "REST",
"method": "POST",
"endpoint": "https://graph.facebook.com/v16.0/dfgdfgdgd/events?access_token=09876",
"endpoint": "https://graph.facebook.com/v17.0/dfgdfgdgd/events?access_token=09876",
"headers": {},
"params": {},
"body": {
Expand All @@ -266,7 +266,7 @@
"version": "1",
"type": "REST",
"method": "POST",
"endpoint": "https://graph.facebook.com/v16.0/dfgdfgdgd/events?access_token=09876",
"endpoint": "https://graph.facebook.com/v17.0/dfgdfgdgd/events?access_token=09876",
"headers": {},
"params": {},
"body": {
Expand All @@ -285,7 +285,7 @@
"version": "1",
"type": "REST",
"method": "POST",
"endpoint": "https://graph.facebook.com/v16.0/dfgdfgdgd/events?access_token=09876",
"endpoint": "https://graph.facebook.com/v17.0/dfgdfgdgd/events?access_token=09876",
"headers": {},
"params": {},
"body": {
Expand All @@ -304,7 +304,7 @@
"version": "1",
"type": "REST",
"method": "POST",
"endpoint": "https://graph.facebook.com/v16.0/dfgdfgdgd/events?access_token=09876",
"endpoint": "https://graph.facebook.com/v17.0/dfgdfgdgd/events?access_token=09876",
"headers": {},
"params": {},
"body": {
Expand All @@ -323,7 +323,7 @@
"version": "1",
"type": "REST",
"method": "POST",
"endpoint": "https://graph.facebook.com/v16.0/dfgdfgdgd/events?access_token=09876",
"endpoint": "https://graph.facebook.com/v17.0/dfgdfgdgd/events?access_token=09876",
"headers": {},
"params": {},
"body": {
Expand All @@ -342,7 +342,7 @@
"version": "1",
"type": "REST",
"method": "POST",
"endpoint": "https://graph.facebook.com/v16.0/dfgdfgdgd/events?access_token=09876",
"endpoint": "https://graph.facebook.com/v17.0/dfgdfgdgd/events?access_token=09876",
"headers": {},
"params": {},
"body": {
Expand All @@ -361,7 +361,7 @@
"version": "1",
"type": "REST",
"method": "POST",
"endpoint": "https://graph.facebook.com/v16.0/dfgdfgdgd/events?access_token=09876",
"endpoint": "https://graph.facebook.com/v17.0/dfgdfgdgd/events?access_token=09876",
"headers": {},
"params": {},
"body": {
Expand All @@ -380,7 +380,7 @@
"version": "1",
"type": "REST",
"method": "POST",
"endpoint": "https://graph.facebook.com/v16.0/dfgdfgdgd/events?access_token=09876",
"endpoint": "https://graph.facebook.com/v17.0/dfgdfgdgd/events?access_token=09876",
"headers": {},
"params": {},
"body": {
Expand All @@ -399,7 +399,7 @@
"version": "1",
"type": "REST",
"method": "POST",
"endpoint": "https://graph.facebook.com/v16.0/dfgdfgdgd/events?access_token=09876",
"endpoint": "https://graph.facebook.com/v17.0/dfgdfgdgd/events?access_token=09876",
"headers": {},
"params": {},
"body": {
Expand All @@ -419,7 +419,7 @@
"version": "1",
"type": "REST",
"method": "POST",
"endpoint": "https://graph.facebook.com/v16.0/dfgdfgdgd/events?access_token=09876",
"endpoint": "https://graph.facebook.com/v17.0/dfgdfgdgd/events?access_token=09876",
"headers": {},
"params": {},
"body": {
Expand All @@ -438,7 +438,7 @@
"version": "1",
"type": "REST",
"method": "POST",
"endpoint": "https://graph.facebook.com/v16.0/dfgdfgdgd/events?access_token=09876",
"endpoint": "https://graph.facebook.com/v17.0/dfgdfgdgd/events?access_token=09876",
"headers": {},
"params": {},
"body": {
Expand All @@ -457,7 +457,7 @@
"version": "1",
"type": "REST",
"method": "POST",
"endpoint": "https://graph.facebook.com/v16.0/dfgdfgdgd/events?access_token=09876",
"endpoint": "https://graph.facebook.com/v17.0/dfgdfgdgd/events?access_token=09876",
"headers": {},
"params": {},
"body": {
Expand All @@ -484,7 +484,7 @@
"version": "1",
"type": "REST",
"method": "POST",
"endpoint": "https://graph.facebook.com/v16.0/dfgdfgdgd/events?access_token=09876",
"endpoint": "https://graph.facebook.com/v17.0/dfgdfgdgd/events?access_token=09876",
"headers": {},
"params": {},
"body": {
Expand All @@ -503,7 +503,7 @@
"version": "1",
"type": "REST",
"method": "POST",
"endpoint": "https://graph.facebook.com/v16.0/dfgdfgdgd/events?access_token=09876",
"endpoint": "https://graph.facebook.com/v17.0/dfgdfgdgd/events?access_token=09876",
"headers": {},
"params": {},
"body": {
Expand All @@ -530,7 +530,7 @@
"version": "1",
"type": "REST",
"method": "POST",
"endpoint": "https://graph.facebook.com/v16.0/dfgdfgdgd/events?access_token=09876",
"endpoint": "https://graph.facebook.com/v17.0/dfgdfgdgd/events?access_token=09876",
"headers": {},
"params": {},
"body": {
Expand All @@ -549,7 +549,7 @@
"version": "1",
"type": "REST",
"method": "POST",
"endpoint": "https://graph.facebook.com/v16.0/dfgdfgdgd/events?access_token=09876",
"endpoint": "https://graph.facebook.com/v17.0/dfgdfgdgd/events?access_token=09876",
"headers": {},
"params": {},
"body": {
Expand All @@ -576,7 +576,7 @@
"version": "1",
"type": "REST",
"method": "POST",
"endpoint": "https://graph.facebook.com/v16.0/dfgdfgdgd/events?access_token=09876",
"endpoint": "https://graph.facebook.com/v17.0/dfgdfgdgd/events?access_token=09876",
"headers": {},
"params": {},
"body": {
Expand Down Expand Up @@ -619,7 +619,7 @@
"version": "1",
"type": "REST",
"method": "POST",
"endpoint": "https://graph.facebook.com/v16.0/dfgdfgdgd/events?access_token=09876",
"endpoint": "https://graph.facebook.com/v17.0/dfgdfgdgd/events?access_token=09876",
"headers": {},
"params": {},
"body": {
Expand All @@ -638,7 +638,7 @@
"version": "1",
"type": "REST",
"method": "POST",
"endpoint": "https://graph.facebook.com/v16.0/dfgdfgdgd/events?access_token=09876",
"endpoint": "https://graph.facebook.com/v17.0/dfgdfgdgd/events?access_token=09876",
"headers": {},
"params": {},
"body": {
Expand All @@ -665,7 +665,7 @@
"version": "1",
"type": "REST",
"method": "POST",
"endpoint": "https://graph.facebook.com/v16.0/dfgdfgdgd/events?access_token=09876",
"endpoint": "https://graph.facebook.com/v17.0/dfgdfgdgd/events?access_token=09876",
"headers": {},
"params": {},
"body": {
Expand All @@ -684,7 +684,7 @@
"version": "1",
"type": "REST",
"method": "POST",
"endpoint": "https://graph.facebook.com/v16.0/dfgdfgdgd/events?access_token=09876",
"endpoint": "https://graph.facebook.com/v17.0/dfgdfgdgd/events?access_token=09876",
"headers": {},
"params": {},
"body": {
Expand All @@ -703,7 +703,7 @@
"version": "1",
"type": "REST",
"method": "POST",
"endpoint": "https://graph.facebook.com/v16.0/dfgdfgdgd/events?access_token=09876",
"endpoint": "https://graph.facebook.com/v17.0/dfgdfgdgd/events?access_token=09876",
"headers": {},
"params": {},
"body": {
Expand Down
4 changes: 2 additions & 2 deletions test/__tests__/data/facebook_pixel_router_output.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"version": "1",
"type": "REST",
"method": "POST",
"endpoint": "https://graph.facebook.com/v16.0/dfgdfgdgd/events?access_token=09876",
"endpoint": "https://graph.facebook.com/v17.0/dfgdfgdgd/events?access_token=09876",
"headers": {},
"params": {},
"body": {
Expand Down Expand Up @@ -65,7 +65,7 @@
"version": "1",
"type": "REST",
"method": "POST",
"endpoint": "https://graph.facebook.com/v16.0/dfgdfgdgd/events?access_token=09876",
"endpoint": "https://graph.facebook.com/v17.0/dfgdfgdgd/events?access_token=09876",
"headers": {},
"params": {},
"body": {
Expand Down

0 comments on commit ee7ee3e

Please sign in to comment.