Hangar

How to set up Hangar on a BM

Step by step with pictures to connect a Business Manager to Hangar: Meta app, System User, access, token and your first AI agent at work

Updated on November 28, 2026

This guide is also in Português · Español

In this guide
  1. Create the BM's Meta app
  2. Create the System User as Employee
  3. Assign the ad accounts, Page and app
  4. Generate a token that never expires
  5. Paste the token in Hangar
  6. Pick the agent and approve the first change

Before you start

The Meta screens in this guide are reproductions with sample data (Studio Lumen BM). Menu names may change slightly as Meta updates Business

1Create the BM's Meta app

  1. In Meta for Developers, click Create app. The first time, Meta asks you to register as a developer and confirm your phone
  2. For the use case, choose Create & manage ads with Marketing API
  3. Connect the app to the client's business portfolio (the BM). If that BM already has an app, use it
Add use cases screen in Meta for Developers with Marketing API selected
Choose Marketing API and the BM's business portfolio
Apps list in Business settings showing the Studio Lumen Ads app
The app needs to appear under Accounts › Apps in the BM

2Create the System User as Employee

  1. In Business settings › Users › System users, click Add
  2. Give it a name that says what it's for, for example hangar-studio-lumen. Hangar suggests this name during setup
  3. Choose the Employee role and create it. Accept the terms if Meta asks

Don't use the Admin role. Meta's official MCP rejects Admin tokens. An Employee only sees what you assign to it, which is also safer

Create system user dialog with the Employee role selected
System User name and the Employee role

3Assign the ad accounts, Page and app

  1. With the System User selected, click Assign assets
  2. Apps: the app from step 1, with full control
  3. Ad accounts: the client's accounts, with full control (manage campaigns)
  4. Pages: the client's Page, with permission to create ads. Without a Page you can't create new ads
  5. Datasets and pixels: the website pixel, to measure conversions
Assign assets dialog with the ad account selected and full control on
Choose the asset type, check the account and turn on full control

4Generate a token that never expires

  1. On the System User, click Generate new token and choose the app from step 1
  2. For expiration, choose Never
  3. Check these four permissions and generate the token:
ads_managementads_readbusiness_managementads_mcp_management

Copy the token right away. Meta only shows it once. Don't paste it in chat, shared spreadsheets or email: it goes straight into Hangar in the next step

Don't see ads_mcp_management in the list? Add the ads use case (Marketing API) to the app and generate the token again

Generate token dialog with the app chosen, expiration Never and the four permissions checked
App from step 1, expiration Never and the four permissions
Generated token with the Copy button
Copy it before closing the dialog

5Paste the token in Hangar

  1. In Hangar, click New BM in the sidebar
  2. Name the BM. On the first step the app shows a proxy field, which is optional. It's recommended if you run many BMs or want a fixed IP per BM. Without one, just click Continue without a proxy
  3. The Meta app, System User and Access steps repeat what you did above, with direct links to each Business screen
  4. On the Token step, paste the token and click Check with Meta
  5. Hangar shows the System User, BM and app it found, and checks expiration, permissions, role, accounts, pixel and Page. Pick the accounts this BM will use and click Save BM
Token step of the BM setup in Hangar with the permissions and the Check with Meta button
Paste the token and check it with Meta
Hangar checklist with everything green and the Save BM button
All green: pick the accounts and save

The token stays on your computer only. It never goes to Hangar's server

6Pick the agent and approve the first change

  1. Under Agents in the sidebar, pick Claude, Codex or Cursor. Each one uses your own subscription: Claude Pro or Max, ChatGPT Plus or Pro for Codex, or your Cursor plan
  2. If the agent isn't on your computer yet, Hangar installs it. In the first conversation you sign in to your account
  3. Open a tab and ask anything about the BM, for example a summary of the last 7 days. The agent only sees that BM
  4. When the agent wants to pause, activate or change a budget, a window shows what will change. You click Approve or Decline. With no answer in 5 minutes, the request is declined
Hangar with Claude analyzing the Studio Lumen BM in the terminal and the Claude, Codex and Cursor agent list
One agent per BM, your choice
Hangar approval window to pause the Retargeting 30d campaign
Nothing goes to Meta without your approval

Common errors and how to fix them

What Hangar showsWhat to do
Role: Admin. For Meta's official MCP, the System User must be an EmployeeAdmin tokens don't work with the official MCP. Create a System User as Employee, assign the assets and generate the token on it
This token belongs to a person, not a System UserA personal profile token expires and is tied to your login. Generate the token on the System User, in step 4
Missing ads_mcp_managementAdd the ads use case (Marketing API) to the app and generate the token again with that permission checked
Missing ads_management, or only ads_readWith only ads_read the agent can read but can't create or edit. Generate again with ads_management checked
Token expires in a few daysThe expiration was set to 60 days. Generate a new one with expiration Never and replace it in the BM setup
Invalid tokenThe token was revoked or copied wrong. Generate a new one on the System User and paste it again
The System User can't see any ad accountGo back to step 3 and assign the account with full control
No Page assignedAssign the client's Page to the System User. Without it you can analyze, but not create new ads
Restricted accountThe problem is on the account itself, on Meta's side. Check the account quality in Business

FAQ

Can I use the same token for several BMs?

No. Each BM has its own app, System User and token. That's what keeps accounts apart: a problem in one BM doesn't spill over to the others

Does the token go to a server?

No. Hangar keeps the token on your computer only. Our server only knows your email, your plan and which computers are active

Do I need to publish the app or go through review?

Not to use the app inside the client's own BM. If you use an app from another BM (your agency's, for example) to manage client accounts, Meta may ask for app review. That's why Hangar uses one app per BM

Can the AI spend on its own?

No. Pausing, activating or changing a budget always opens the approval window. If you don't answer in 5 minutes, the request is declined and nothing goes to Meta

Which agent should I pick?

The one you already pay for. Claude uses the Pro or Max plan, Codex uses ChatGPT Plus or Pro and Cursor uses your Cursor plan. You can switch agents anytime

Ready to connect your first BM?

All your BMs in one window, with an AI agent for each one. The AI analyzes and suggests, you approve the spend

See HangarTalk to us