From a Facebook account to an AI-managed token
A complete step-by-step path: create a business, Page, ad account, and app, then issue a token for managing ads through the API. Every step includes a direct link and explains where to find each required value.
Create a business portfolio (Meta Business Manager)
This is the container for your Page, ad account, and app. You cannot issue the token without it.
- Select Create account.
- Enter your business name, your name, and a work email, then select Submit.
- Confirm the email in the message from Meta.
Add a Facebook Page
Ads always run under a Page identity, so a Page is required before you can create an ad.
- Open Business settings โ Accounts โ Pages.
- Select Add โ Create a new Page, or connect an existing Page.
- Enter the Page name and category, then select Create.
Create an ad account and add billing
This is the billing account used to run ads. Its ID is required for API management.
- Open Business settings โ Accounts โ Ad accounts โ Add โ Create a new ad account.
- Enter a name, time zone, and currency, such as USD, then select Next.
- Assign yourself full Manage campaigns access.
- In Ads Manager, open Billing and add a payment method.
Create a Meta app and add advertising use cases
The app is the lock used to issue a token. Its advertising use cases enable API management.
- Select Create App and choose the Business app type.
- Enter a name, such as AI Targetolog, an email, and connect the business portfolio from step 1.
- At the Use cases step, select the advertising use cases below. If the app already exists, add them in its Use cases section.
Create a system user and issue the token
A system user is the business's automated team member. Its token is the key the AI uses to manage ads.
- Open Business settings โ Users โ System users โ Add.
- Enter a name, such as AI Targetolog, select the Admin role, and create the user.
- Use Assign assets to grant full control of the app, Manage campaigns access to the ad account, and management access to the Page.
- Select Generate new token and choose your app.
- Select these permissions:
- Set the expiration to Never so the token does not expire.
- Select Generate token and copy it immediately.
Result: what to enter in the form
The Connections page has three fields. App ID and App Secret were needed only to create the app and should not be entered in the product.
System User token with ads_managementstep 5 ยท primary access key
Ad Account ID โ the digits from act_โฆstep 3 ยท ad account
Facebook Page ID โ your Page numberBusiness Suite โ Page โ About โ Page ID
Complete the app profile and Privacy Policy
This step is required. Without a privacy policy, Meta will not let you publish the app and the key will remain in development mode.
- Create a policy specifically for this app and use the same work email.
- Generate the privacy policy and copy its URL.
- In the app, open Settings โ Basic and paste the address into Privacy Policy URL.
- Add an app icon and category on the same page, then save your changes.
Publish the app in Live mode
The final required step is to move the app from Development to Live. Its status should then show as Live.
- Confirm that Privacy Policy URL was completed in step 7.
- In the app menu, select Publish or switch Development โ Live.
- Complete Meta's short checklist if it asks for missing profile fields.
- The step is complete when the app status is Live.