有没有办法在每个请求上显示所有字段为默认值,而不指定每个字段?
目前正在执行此列举广告帐户的字段 - 广告:
$fields = array(
'id',
'adset_id',
'date_format',
'creative',
'name',
'status',
'tracking_specs',
'display_sequence',
'execution_options',
'adlabels',
'bid_amount',
'redownload'
);
$fields_comma = implode(",", $fields);
$account_id = 'act_'.$account_id;
$config = array();
$config['app_id'] = FB_APP_ID;
$config['app_secret'] = FB_APP_SECRET;
$fb = new Facebook($config);
$fb->setDefaultAccessToken(FB_USER_TOKEN_X);
$request = $fb->request('GET', '/'.$account_id.'/ads?fields='.$fields_comma);
$response = $fb->getClient()->sendRequest($request);