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?