本主題說明如何刪除現有下層企業管理平台。
注意:視應用程式設定中是否啟用 appsecret_proof 而定,您在進行每個呼叫時,可能會需要 appsecret_proof 作為參數。請參閱保護圖形 API 要求文件,瞭解如何設定此選項,以及如何產生 appsecret_proof。
curl \ -F 'id=<CHILD_BM_ID>' \ -F 'app_id=<APP_ID>' \ -F 'scope=ads_management,business_management' \ -F 'access_token=<PARENT_BM_ADMIN_SYSTEM_USER_ACCESS_TOKEN>' \ -F 'appsecret_proof=<APP_SECRET_PROOF>' \ // Optional, depending on your app's security settings https://graph.facebook.com/<API_VERSION>/<CHILD_BM_ID>/access_token
PAUSED
。否則,將無法成功對包含進行中行銷活動的下層企業管理平台進行刪除呼叫。curl -G \ -d 'access_token=<CHILD_BM_SYSTEM_USER_ACCESS_TOKEN>' \ -d 'appsecret_proof=<APP_SECRET_PROOF>' \ // Optional, depending on your app's security settings https://graph.facebook.com/<API_VERSION>/<CHILD_BM_ID>/owned_ad_accounts
curl -G \ -d 'access_token=<CHILD_BM_SYSTEM_USER_ACCESS_TOKEN>' \ -d 'appsecret_proof=<APP_SECRET_PROOF>' \ // Optional, depending on your app's security settings https://graph.facebook.com/<API_VERSION>/<act_AD_ACCOUNT_ID>/campaigns
curl \ -F 'status=PAUSED' \ -F 'access_token=<CHILD_BM_SYSTEM_USER_ACCESS_TOKEN>' \ -F 'appsecret_proof=<APP_SECRET_PROOF>' \ // Optional, depending on your app's security settings https://graph.facebook.com/<API_VERSION>/<CAMPAIGN_ID>/
curl -X DELETE \ -d 'client_id=<CHILD_BM_ID>' \ -d 'access_token=<PARENT_BM_ADMIN_SYSTEM_USER_ACCESS_TOKEN>' \ -d 'appsecret_proof=<APP_SECRET_PROOF>' \ // Optional, depending on your app's security settings https://graph.facebook.com/<API_VERSION>/<PARENT_BM_ID>/owned_businesses