skip to Main Content

This is my first question to Stackoverflow. Please let me know if I need to provide more info.

The facebook-nodejs-business-sdk is still in version 13. Is there a way to call for Facebook Business API version 14?

I tried updating to the latest version from npm installs but its only v13.

2

Answers


  1. This can be addressed by overriding the SDK API version with the following (right after you require the package):

    const bizSdk = require('facebook-nodejs-business-sdk');
    
    // Set ads api version
    Object.defineProperty(bizSdk.FacebookAdsApi, 'VERSION', { get: () => 'v14.0' });
    Object.defineProperty(bizSdk.FacebookAdsApi, 'SDK_VERSION', { get: () => 'v14.0.0' });```
    
    Hope this helps the many of you in trouble with this.
    
    Login or Signup to reply.
  2. The version 14 of the facebook-nodejs-business-sdk module is out now.
    To install the latest version of facebook-nodejs-business-sdk you can run in the terminal.

    npm install facebook-nodejs-business-sdk@latest
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search