facebook-nodejs-business-sdk icon indicating copy to clipboard operation
facebook-nodejs-business-sdk copied to clipboard

Where's the complete documentation?

Open ffxsam opened this issue 2 years ago • 2 comments

The README shows a few examples, e.g.:

const account = new AdAccount('act_<AD_ACCOUNT_ID>');

console.log(account.id) // fields can be accessed as properties
account
  .createCampaign(
    [Campaign.Fields.Id],
    {
      [Campaign.Fields.name]: 'Page likes campaign', // Each object contains a fields map with a list of fields supported on that object.
      [Campaign.Fields.status]: Campaign.Status.paused,
      [Campaign.Fields.objective]: Campaign.Objective.page_likes
    }
  )
  .then((result) => {
  })
  .catch((error) => {
  });

But where's the full docs? There's no type awareness/IntelliSense, so it's impossible to tell what methods are available on the account object. E.g. how do I work with the Offline Conversions API?

ffxsam avatar Oct 22 '22 19:10 ffxsam

Bump

rmarmitt avatar Jan 17 '23 14:01 rmarmitt

This library is based around trial and error. Documentation is pretty much non existent, and you have to console.log your way through the functions.

ChatGPT can sometimes produce good explanations, but only sometimes so it is not a reliable source. Things like Ad report runs and async insights are pretty much impossible to guess, but thankfully i found an open issue that has a working snippet inside.

If anyone has any resemblance of an documentation, please share it with us.

djgamerr avatar Jun 30 '23 11:06 djgamerr