【发布时间】:2015-05-13 00:10:11
【问题描述】:
我需要帮助。我使用开发者应用程序尝试将 ProductCatalog 添加到 Business Manager。之前我添加了多产品,可以吗?
$catalog = new ProductCatalog(null,'<BUSINESS_ID>');
$catalog->setData(array(
ProductCatalogFields::NAME => 'test',
));
$catalog->save();
我收到错误
(#275) 无法为此请求确定广告帐户
当我尝试时
$request = new FacebookRequest( $session, 'POST', '/<BUSINESS_ID>/product_catalogs',array('name'=>'test') );
$response = $request->execute();
我明白了
(#275) 无法为此请求确定广告帐户
发生了什么? ProductCatalog 需要 AdAcountID?我将所有广告帐户 ID 添加到应用设置。我必须在代码中添加它。我有最新的 API。
【问题讨论】:
标签: php facebook curl facebook-php-sdk