Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating several objects with the same AdAccount instance returns an error #39

Closed
thierryjacoel opened this issue Mar 22, 2018 · 1 comment

Comments

@thierryjacoel
Copy link

When trying to create several objects, for example a campaign and an adset using the same instance of AdAccount, eg:

const account = new AdAccount(ACCOUNT_ID);

account.createCampaign(...)
.then(campaign => {
    account.createAdSet(...)
})

Facebook returns an error Unsupported post request. Object with ID '.....' does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api for the second create call

The problem disapears if I replace this with:

new AdAccount(ACCOUNT_ID).createCampaign(...)
.then(campaign => {
    new AdAccount(ACCOUNT_ID).createAdSet(...)
})
@codytwinton
Copy link
Contributor

It seems like this issue has been open for more than a few months now. We have made many changes in the SDK since then, including releasing a new version. If you can repro your specific issue with the latest version of the SDK, please create a new issue or comment here with further details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants