您请求的某些别名不存在:

问题描述

我从 Facebook 广告库 API 收到以下响应

{"error":{"message":"(#803) Some of the aliases you requested do not exist: \u003CAPI_VERSION>","type":"OAuthException","code":803,"fbtrace_id":"AXZ00I_mwgTvJwqIImb1SBw"}}

下面是我试图执行的 CURL;

<?PHP

$ch = curl_init();

curl_setopt($ch,CURLOPT_URL,'https://graph.facebook.com/<API_VERSION>/ads_archive');
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch,CURLOPT_POST,CURLOPT_POSTFIELDS,"search_terms='california'&ad_type=POLITICAL_AND_ISSUE_ADS&ad_reached_countries=['US']&access_token=330479468051422|t_w8UDcd2QYqQ_hfxfs-LsKSxIA");

$headers = array();
$headers[] = 'Content-Type: application/x-www-form-urlencoded';
curl_setopt($ch,CURLOPT_HTTPHEADER,$headers);

$result = curl_exec($ch);
if (curl_errno($ch)) {
    echo 'Error:' . curl_error($ch);
}
curl_close($ch);

echo $result; 

?>

有什么我做错的地方吗,非常感谢。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)