Skip to main content

Looking for a keen eye to see where I have gone wrong.  I  am trying to Post some JSON to the Facebook Marketing API using a custom Zap built in the UI.  When running this through Zapier, I get an error that the JSON node Session cannot be found.  However when I paste this exact JSON into the Facebook Graph Explorer is works perfectly. Attached is the Facebook Graph Explorer Screenshot. 

Here is the Request/Response from Zapier.

REQUEST INFORMATION
Method: POST
URL/Path: https://graph.facebook.com/v13.0/23849600404060124/usersreplace
Headers: Accept: application/json
Authorization: Bearer :censored:243:12a49429da:
Data:
{
"session": {
"session_id": 1647764142736,
"batch_seq": 1,
"last_batch_flag": false,
"estimated_num_total": 10
},
"payload": {
"schema": m"EMAIL","PHONE","FN","LN","ZIP","COUNTRY"],
"data": ta"d7acc64a8e2b935cd853e733d2a38e5c72b2bad4f6caad14ad3ace13b5a7b144","","12302c7702f6bee416a00b157bb339bbe0bad61d4d14c53f35c893e848d1bc92","29ac2425e5433249e48da9d22d0a55780aa2191c76fe33b48cca32a2d2391e11","e77e60549a846a36d82e43a539904439a11c743fb0b2644c942e8f54eb1871f5","79adb2a2fce5c6ba215fe5f27f532d4e7edbac4b6a5e09e1ef3a08084a904621"],2"ca3bc2639e84cc45cbfbe6132a1271769140b27cf91f48cf3d7ac68f63164569","","70528be54163fea4a9d33c77380e0eb9981262aece3e2ff2b551a685dceb8c35","719810ae52b43d094ce3ae0bdcb57cb4bbc9e9a0e155f56fdc6565a89ab0257a","0fe93bded2ac3b6ae0a3d65e674f4f53d2f1189604370edb27e0bde59403b381","79adb2a2fce5c6ba215fe5f27f532d4e7edbac4b6a5e09e1ef3a08084a904621"],2"5f328b42e5eb6927da81dcad29abe94f0fce760eec690ba3fb1e1853f9ee267f","","63c5d687c64d48947a75bf25daa7a128d0c9a8fe1205c7ae3728224015ee7c0e","86d0917177d9cf5fb859b81005f650eb9a3be0d5b1a66df60aea9aee416bc03d","78807a8054bd9e7eaa686936ec82ea91367b8f4e101ad8ba11c48f31c54eb10a","79adb2a2fce5c6ba215fe5f27f532d4e7edbac4b6a5e09e1ef3a08084a904621"],2"3492e219cedbaf82ada847441512b46cffce830487d6d6f4249c358a5e9954d3","","50cb84da60659f571630b6f236dfd17a7ec5f2871fe2eff33fa615a093bda6fa","6df23ccc3ac208e59b0fb23099a8a8c3ec2a73e6b7e149e4b94d5e62fc582068","78456e20da32cbb4613b9cbffc6e5c6283e7cc196a595384c12c07ea3a755c53","79adb2a2fce5c6ba215fe5f27f532d4e7edbac4b6a5e09e1ef3a08084a904621"],2"08913bbca6e44986029ea364b8b24782dc20ffddff704c3ecef415d05f253124","","6bab3007f56e2a9175ff1222c2654ddcd08fa7981a1ddc42f1d95cfbd80ede47","78b061e57905bc827755989756bcedd25e5cb2c0c44de76473810ba157afb5b6","4469fcc63e93f1ad93c2a8716b08a6a065dce2ed853a3ad4f949561964afc7fd","79adb2a2fce5c6ba215fe5f27f532d4e7edbac4b6a5e09e1ef3a08084a904621"]]
}
}

RESPONSE INFORMATION
Status Code: 400
date: Sun, 20 Mar 2022 21:04:58 GMT
facebook-api-version: v13.0
x-fb-debug: pGhfg4euCpIeBxyTO8ESin5LZupzXZBfUCsWVFFENyi8hzZUhBCLFgq8jusR0ilXZ65NREtuolje/Yhtb0a2qg==
x-fb-request-id: ATT_6N_y1mAGZA_wOtEYqFH
x-fb-rev: 1005217391

Content:
{"error":{"message":"(#100) The parameter session is required","type":"OAuthException","code":100,"fbtrace_id":"ATT_6N_y1mAGZA_wOtEYqFH"}}

Here is the Screenshot in Facebook Graph Explorer: