facebook-nodejs-business-sdk
facebook-nodejs-business-sdk copied to clipboard
Where's the complete documentation?
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?
Bump
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.