How to handle facebook-nodejs-business-sdk exceptions
1

hello there,

Currently I'm working with the facebook-nodejs-business-sdk to send events and need to capture the exception:

FacebookRequestError.FacebookError (/Users/imacig/Desktop/meta_pixel_conversion_api/node_modules/facebook-nodejs-business-sdk/dist/exceptions.js:18:16) at FacebookRequestError (/Users/imacig/Desktop/meta_pixel_conversion_api/node_modules/facebook-nodejs-business-sdk/dist/exceptions.js:34:5) at (/Users/imacig/Desktop/meta_pixel_conversion_api/node_modules/facebook-nodejs-business-sdk/dist/api.js:153:15) at process.processTicksAndRejections

so, how can I import the mentioned exception? I tried: - import FacebookRequestError from "facebook-nodejs-business-sdk/dist/exceptions" - import FacebookRequestError from "facebook-nodejs-business-sdk"

No one worked, thanks beforehand !

Mau
Asked about 4 months ago
Selected Answer
2

You're probably going to get more help on the GitHub repo itself - https://github.com/facebook/facebook-nodejs-business-sdk/issues

July 1 at 8:32 PM
Sherman