Skip to content

Commit

Permalink
feat: update API version to v18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sandeepdsvs committed Nov 10, 2023
1 parent bedbcdb commit a878932
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/v0/destinations/facebook_conversions/config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const { getMappingConfig } = require('../../util');

const ENDPOINT = (datasetId, accessToken) =>
`https://graph.facebook.com/v17.0/${datasetId}/events?access_token=${accessToken}`;
`https://graph.facebook.com/v18.0/${datasetId}/events?access_token=${accessToken}`;

const CONFIG_CATEGORIES = {
USERDATA: {
Expand Down
16 changes: 8 additions & 8 deletions test/__tests__/data/facebook_conversions.json
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@
"version": "1",
"type": "REST",
"method": "POST",
"endpoint": "https://graph.facebook.com/v17.0/dummyID/events?access_token=09876",
"endpoint": "https://graph.facebook.com/v18.0/dummyID/events?access_token=09876",
"headers": {},
"params": {},
"body": {
Expand Down Expand Up @@ -338,7 +338,7 @@
"version": "1",
"type": "REST",
"method": "POST",
"endpoint": "https://graph.facebook.com/v17.0/dummyID/events?access_token=09876",
"endpoint": "https://graph.facebook.com/v18.0/dummyID/events?access_token=09876",
"headers": {},
"params": {},
"body": {
Expand Down Expand Up @@ -435,7 +435,7 @@
"version": "1",
"type": "REST",
"method": "POST",
"endpoint": "https://graph.facebook.com/v17.0/dummyID/events?access_token=09876",
"endpoint": "https://graph.facebook.com/v18.0/dummyID/events?access_token=09876",
"headers": {},
"params": {},
"body": {
Expand Down Expand Up @@ -532,7 +532,7 @@
"version": "1",
"type": "REST",
"method": "POST",
"endpoint": "https://graph.facebook.com/v17.0/dummyID/events?access_token=09876",
"endpoint": "https://graph.facebook.com/v18.0/dummyID/events?access_token=09876",
"headers": {},
"params": {},
"body": {
Expand Down Expand Up @@ -636,7 +636,7 @@
"version": "1",
"type": "REST",
"method": "POST",
"endpoint": "https://graph.facebook.com/v17.0/dummyID/events?access_token=09876",
"endpoint": "https://graph.facebook.com/v18.0/dummyID/events?access_token=09876",
"headers": {},
"params": {},
"body": {
Expand Down Expand Up @@ -734,7 +734,7 @@
"version": "1",
"type": "REST",
"method": "POST",
"endpoint": "https://graph.facebook.com/v17.0/dummyID/events?access_token=09876",
"endpoint": "https://graph.facebook.com/v18.0/dummyID/events?access_token=09876",
"headers": {},
"params": {},
"body": {
Expand Down Expand Up @@ -831,7 +831,7 @@
"version": "1",
"type": "REST",
"method": "POST",
"endpoint": "https://graph.facebook.com/v17.0/dummyID/events?access_token=09876",
"endpoint": "https://graph.facebook.com/v18.0/dummyID/events?access_token=09876",
"headers": {},
"params": {},
"body": {
Expand Down Expand Up @@ -928,7 +928,7 @@
"version": "1",
"type": "REST",
"method": "POST",
"endpoint": "https://graph.facebook.com/v17.0/dummyID/events?access_token=09876",
"endpoint": "https://graph.facebook.com/v18.0/dummyID/events?access_token=09876",
"headers": {},
"params": {},
"body": {
Expand Down
4 changes: 2 additions & 2 deletions test/__tests__/data/facebook_conversions_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/v17.0/dummyID/events?access_token=09876",
"endpoint": "https://graph.facebook.com/v18.0/dummyID/events?access_token=09876",
"headers": {},
"params": {},
"body": {
Expand Down Expand Up @@ -64,7 +64,7 @@
"version": "1",
"type": "REST",
"method": "POST",
"endpoint": "https://graph.facebook.com/v17.0/dummyID/events?access_token=09876",
"endpoint": "https://graph.facebook.com/v18.0/dummyID/events?access_token=09876",
"headers": {},
"params": {},
"body": {
Expand Down

0 comments on commit a878932

Please sign in to comment.