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 6425f5b commit 113ac37
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 47 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 @@ -65,7 +65,7 @@ const responseBuilderSimple = (message, category, destination) => {
} = Config;
const integrationsObj = getIntegrationsObj(message, 'fb_pixel');

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

const userData = fetchUserData(
message,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const data = [
headers: {},
version: '1',
endpoint:
'https://graph.facebook.com/v17.0/1234567891234567/events?access_token=invalid_access_token',
'https://graph.facebook.com/v18.0/1234567891234567/events?access_token=invalid_access_token',
params: {
destination: 'facebook_pixel',
},
Expand Down Expand Up @@ -90,7 +90,7 @@ export const data = [
headers: {},
version: '1',
endpoint:
'https://graph.facebook.com/v17.0/1234567891234567/events?access_token=my_access_token',
'https://graph.facebook.com/v18.0/1234567891234567/events?access_token=my_access_token',
params: {
destination: 'facebook_pixel',
},
Expand Down Expand Up @@ -140,7 +140,7 @@ export const data = [
headers: {},
version: '1',
endpoint:
'https://graph.facebook.com/v17.0/1234567891234567/events?access_token=invalid_timestamp_correct_access_token',
'https://graph.facebook.com/v18.0/1234567891234567/events?access_token=invalid_timestamp_correct_access_token',
params: {
destination: 'facebook_pixel',
},
Expand Down Expand Up @@ -210,7 +210,7 @@ export const data = [
headers: {},
version: '1',
endpoint:
'https://graph.facebook.com/v17.0/1234567891234567/events?access_token=throttled_valid_access_token',
'https://graph.facebook.com/v18.0/1234567891234567/events?access_token=throttled_valid_access_token',
params: {
destination: 'facebook_pixel',
},
Expand Down Expand Up @@ -275,7 +275,7 @@ export const data = [
headers: {},
version: '1',
endpoint:
'https://graph.facebook.com/v17.0/1234567891234567/events?access_token=invalid_account_id_valid_access_token',
'https://graph.facebook.com/v18.0/1234567891234567/events?access_token=invalid_account_id_valid_access_token',
params: {
destination: 'facebook_pixel',
},
Expand Down Expand Up @@ -343,7 +343,7 @@ export const data = [
headers: {},
version: '1',
endpoint:
'https://graph.facebook.com/v17.0/1234567891234567/events?access_token=not_found_access_token',
'https://graph.facebook.com/v18.0/1234567891234567/events?access_token=not_found_access_token',
params: {
destination: 'facebook_pixel',
},
Expand Down Expand Up @@ -412,7 +412,7 @@ export const data = [
headers: {},
version: '1',
endpoint:
'https://graph.facebook.com/v17.0/1234567891234570/events?access_token=valid_access_token',
'https://graph.facebook.com/v18.0/1234567891234570/events?access_token=valid_access_token',
},
method: 'POST',
},
Expand Down Expand Up @@ -478,7 +478,7 @@ export const data = [
headers: {},
version: '1',
endpoint:
'https://graph.facebook.com/v17.0/1234567891234571/events?access_token=valid_access_token',
'https://graph.facebook.com/v18.0/1234567891234571/events?access_token=valid_access_token',
},
method: 'POST',
},
Expand Down Expand Up @@ -544,7 +544,7 @@ export const data = [
headers: {},
version: '1',
endpoint:
'https://graph.facebook.com/v17.0/1234567891234572/events?access_token=valid_access_token_unhandled_response',
'https://graph.facebook.com/v18.0/1234567891234572/events?access_token=valid_access_token_unhandled_response',
},
method: 'POST',
},
Expand Down
Loading

0 comments on commit 113ac37

Please sign in to comment.