Following the example from the readme , I did
const adAccount = new AdAccount("act_3984312178532482");
const campaignsData = await adAccount.getCampaigns([Campaign.Fields.name], {
limit: 2,
});
This isn't returning any data and my request just times out after 10s.
However if try to use the API directly like so
const response = await fetch(
`https://graph.facebook.com/v21.0/act_3984312178532482/campaigns?fields=name&access_token=${accessToken}`,
);
It works just fine and is pretty fast too.
Following the example from the readme , I did
This isn't returning any data and my request just times out after 10s.
However if try to use the API directly like so
It works just fine and is pretty fast too.