View a markdown version of this page

Meta ads integration - AWS Quick

Meta ads integration

Meta ads is Meta's advertising platform for Facebook, Instagram, Messenger, and the Audience Network. The Meta ads AI connector gives AWS Quick access to the ads Model Context Protocol (MCP) server. You can create, manage, and analyze campaigns in natural language without switching to Ads Manager. For example, you can review last week's campaign performance, find underperforming ad sets, check catalog health, or draft a new campaign.

The connector is available in the following AWS Regions: US East (N. Virginia), US West (Oregon), Europe (Ireland), Europe (London), Europe (Frankfurt), Asia Pacific (Sydney), and Asia Pacific (Tokyo).

You can use two authentication methods for Meta ads. Choose the method that best fits your organization's security requirements:

  • Default OAuth app – Uses a Meta app managed by AWS. No additional credentials are needed. Users sign in directly with their Facebook account.

  • Custom OAuth app – Uses a Meta app that your organization owns. This option gives your organization full control over the app, including its permissions and App Review.

For more information about the authentication methods that AWS Quick supports, see Authentication methods.

Before you begin

Make sure that you have the following before you set up the integration:

  • A Meta business account with access to the ad accounts that you want to connect. To create or change campaigns, your role on the ad account must allow editing, such as Advertiser or Admin.

  • For Custom OAuth app: A Meta developer account and a Meta app with the Create & manage ads with ads MCP server use case. The app must list the AWS Quick callback URL as a valid OAuth redirect URI. For instructions, see Configuring Meta.

  • For AWS Quick subscription requirements, see Set up integrations in the console.

Configuring Meta

If you're using Default OAuth app authentication, skip this section and see Setting up the connector in AWS Quick.

For Custom OAuth app authentication, create a Meta app and configure it to work with AWS Quick.

  1. Sign in to Meta for Developers, and then create a new app or open an existing one.

  2. Add the Create & manage ads with ads MCP server use case.

  3. Under Facebook Login for Business > Settings, for Valid OAuth Redirect URIs, enter the AWS Quick callback URL. Replace region with your AWS Region, for example us-east-1:

    https://region.quicksight.aws.amazon.com/sn/oauthcallback

    If you use AWS Quick at quick.aws.com, also add https://quick.aws.com/sn/oauthcallback.

  4. Request the permissions that the connector uses. The minimum permissions are ads_mcp_management and ads_read. To use every tool in AWS Quick, also request ads_management, business_management, catalog_management, pages_show_list, pages_manage_ads, and instagram_basic. Users who don't have a role on your app can sign in only after Meta grants Advanced Access through App Review.

  5. Under App settings > Basic, record the App ID and App secret. You need these values when you configure the connector in AWS Quick.

Development mode

While a Meta app is in Development mode, only Facebook users who have a role on the app (admin, developer, or tester) can connect. Switch the app to Live after Meta approves App Review.

For more information, see Create an app and App Review on the Meta for Developers website.

Setting up the connector in AWS Quick

You can connect from the Available tab with Default OAuth app authentication, or create a connector for your team with either authentication method.

Connect from the Available tab

To use Default OAuth app authentication, you can connect directly from the Available tab without additional configuration.

  1. In the AWS Quick console, choose Customize, and then choose Connectors.

  2. On the Available tab, find Meta ads and choose Connect.

  3. Sign in with Facebook. Choose the Pages, businesses, Instagram accounts, and ad accounts that AWS Quick can access. Grant the requested permissions, and then choose Continue.

To configure a connector with Custom OAuth app instead, use the Create for your team tab, as described in the following section.

Create a connector for your team

Use the Create for your team tab to create a connector with either authentication method.

  1. In the AWS Quick console, choose Customize, and then choose Connectors.

  2. On the Create for your team tab, find and choose Meta ads.

  3. For Name, enter a name for your connector.

  4. (Optional) Choose + Add Description, and then enter a description.

  5. For Connection type, choose Public network.

  6. For OAuth Configuration, choose one of the following authentication methods and configure the required fields:

    1. For Default OAuth app, no additional credentials are needed.

    2. For Custom OAuth app, configure the following fields:

      • Client ID – The App ID from your Meta app.

      • Client secret – The App secret from your Meta app.

      • Token URL – The token endpoint. Default: https://graph.facebook.com/v23.0/oauth/access_token

      • Authorization URL – The authorization endpoint. Default: https://www.facebook.com/v23.0/dialog/oauth

      • Redirect URL – Prefilled with the AWS Quick callback URL. Make sure that this exact URL is in your Meta app's Valid OAuth Redirect URIs. If it's missing or differs, for example in the Region, Facebook rejects the sign-in with a redirect URI error.

  7. Choose Next.

To finish, authorize and publish the connector as described in the following section.

Authorize and publish the connector

After you choose Next, a Facebook authorization window opens.

  1. In the Facebook authorization window, choose the Pages, businesses, Instagram accounts, and ad accounts that AWS Quick can access. Review the requested permissions, and then choose Continue.

  2. On the Review page, review the available actions for the connector, and then choose Next.

  3. On the Publish page, choose who can access the connector. You can enable access for everyone in your organization, or search for specific teams or groups.

  4. Choose Publish.

Available actions

After you set up the connector, you can use Meta ads tools in AWS Quick to analyze and manage your advertising. Meta updates the tool set regularly, so the exact list in your connector can differ. The tools fall into the following groups:

Meta ads tool groups
Group What you can do
Accounts and assets List ad accounts, Pages, Instagram accounts, ad images and videos, and an ad account's activity log.
Campaigns, ad sets, and ads View your campaign structure, preview ads, and create, update, activate, or pause campaigns, ad sets, ads, and creatives.
Performance insights View performance trends, anomaly signals, auction ranking, industry benchmarks, and opportunity scores.
Audiences View, create, and update custom audiences.
Catalogs Manage product catalogs, product sets, feeds, and feed rules, and check catalog and dynamic ads health.
Measurement Read and manage pixel events and parameters, datasets, and custom conversions, and run A/B and lift tests.
Help Search the Ad Library and Meta's help articles.
Changes and ad spend

The connector can make changes in your ad accounts that can affect ad spend. Before AWS Quick creates a campaign, changes a budget, or runs another write action, it asks for your permission. Read-only actions, such as pulling performance insights, run without asking. Meta creates new campaigns, ad sets, and ads as paused. They don't deliver until you activate them.

For more information about the Meta ads MCP server, see Connect an MCP client to Meta on the Meta for Developers website.

Managing and troubleshooting

To edit, share, or delete your connector, see Managing existing integrations.

The following issues can occur when you set up or use the connector.

Sign-in fails

Verify that you can sign in to Facebook directly and that your account has access to at least one ad account. For Custom OAuth app, confirm that the Valid OAuth Redirect URIs in your Meta app match the AWS Quick callback URL.

App isn't available during sign-in

This issue applies to Custom OAuth app. Meta shows an app not available error when the Meta app is in Development mode and the user doesn't have a role on it. Add the user as a tester, or switch the app to Live after Meta approves App Review.

Invalid client credentials

This issue applies to Custom OAuth app. Verify that the Client ID and Client secret match the App ID and App secret in your Meta app.

Insufficient permissions

If actions return authorization errors, verify that the user granted the requested permissions and selected the right ad accounts during sign-in. Also verify that the Meta app has Advanced Access for those permissions. To change what you shared, disconnect and sign in again.

An ad account is missing

During Facebook sign-in, Meta shares only the businesses and ad accounts that you select. Disconnect, sign in again, and select the missing account.