I need help. I am using a developer application where I am trying to add ProductCatalog to Business Manager. Earlier I add Multi Product and everything is all right.
$catalog = new ProductCatalog(null,'<BUSINESS_ID>'); $catalog->setData(array( ProductCatalogFields::NAME => 'test', )); $catalog->save();
I get an error
(# 275) An account could not be defined for this request
When i try
$request = new FacebookRequest( $session, 'POST', '/<BUSINESS_ID>/product_catalogs',array('name'=>'test') ); $response = $request->execute();
I get
(# 275) An account could not be defined for this request
What happened? Does ProductCatalog need an AdAcoountID? I add all adaccounts identifiers to the application settings. Where should I add this to the code. I have the latest API.
source share