{"id":29480,"date":"2026-04-04T20:19:24","date_gmt":"2026-04-04T18:19:24","guid":{"rendered":"https:\/\/aivie.ch\/faq\/how-do-i-get-a-meta-app-id-and-a-secret\/"},"modified":"2026-04-04T21:42:15","modified_gmt":"2026-04-04T19:42:15","slug":"how-do-i-get-a-meta-app-id-and-a-secret","status":"publish","type":"faq","link":"https:\/\/aivie.ch\/en\/faq\/how-do-i-get-a-meta-app-id-and-a-secret\/","title":{"rendered":"How do I get a Meta App ID and a secret?"},"content":{"rendered":"\n<p>Go to https:\/\/developers.facebook.com\/apps and create an app. At the end, you\u2019ll get the App ID and an App Secret. You can then enter these in the Aivie Ad Sync plugin settings.  <\/p>\n\n<!--more-->\n\n<h2 class=\"wp-block-heading\">What do I need a Meta App ID and a secret for?<\/h2>\n\n<p>If you want to connect Aivie with Meta, authentication runs via your own app on Meta. This app ensures that: <\/p>\n\n<ul class=\"wp-block-list\">\n<li>Aivie gets access to your ad account<\/li>\n\n\n\n<li>data is transferred securely<\/li>\n\n\n\n<li>you can control the connection at any time<\/li>\n<\/ul>\n\n<p>The App ID and the secret are the credentials for this connection.<\/p>\n\n<h2 class=\"wp-block-heading\">Step by step tutorial<\/h2>\n\n<h2 class=\"wp-block-heading\">1. Create a Meta app<\/h2>\n\n<p>Go to<br\/><a href=\"https:\/\/developers.facebook.com\/apps\" target=\"_blank\" rel=\"noopener\">https:\/\/developers.facebook.com\/apps<\/a><\/p>\n\n<ul class=\"wp-block-list\">\n<li>Log in with the account that manages your ad account<\/li>\n\n\n\n<li>Click <strong>Create App<\/strong><\/li>\n\n\n\n<li>Select the <strong>Business<\/strong> type<\/li>\n\n\n\n<li>Give it a name, e.g., &#8220;Mautic Ad Sync&#8221;<\/li>\n\n\n\n<li>Add a contact email address<\/li>\n<\/ul>\n\n<h2 class=\"wp-block-heading\">2. Find the App ID and secret<\/h2>\n\n<ul class=\"wp-block-list\">\n<li>In the dashboard, open <strong>Settings \u2192 Basic<\/strong><\/li>\n\n\n\n<li>At the top you\u2019ll find the <strong>App ID<\/strong><\/li>\n\n\n\n<li>Next to <strong>App Secret<\/strong>, click &#8220;Show&#8221; to display it<\/li>\n<\/ul>\n\n<h2 class=\"wp-block-heading\">3. Add Facebook Login<\/h2>\n\n<ul class=\"wp-block-list\">\n<li>Scroll to <strong>Add Product<\/strong><\/li>\n\n\n\n<li>Select <strong>Facebook Login<\/strong> and click <strong>Set Up \u2192 Web<\/strong><\/li>\n<\/ul>\n\n<h2 class=\"wp-block-heading\">4. Configure the redirect URL<\/h2>\n\n<ul class=\"wp-block-list\">\n<li>Go to <strong>Facebook Login \u2192 Settings<\/strong><\/li>\n\n\n\n<li>Paste the callback URL from Aivie (Authorization tab)<\/li>\n\n\n\n<li>Save the changes<\/li>\n\n\n\n<li>Note: The URL is only valid for testing after you save it.<\/li>\n<\/ul>\n\n<h2 class=\"wp-block-heading\">5. Connect in Aivie<\/h2>\n\n<ul class=\"wp-block-list\">\n<li>Go back to Aivie<\/li>\n\n\n\n<li>Enter the <strong>App ID<\/strong> and <strong>App Secret<\/strong><\/li>\n\n\n\n<li>Save the settings<\/li>\n\n\n\n<li>Click <strong>Connect<\/strong><\/li>\n<\/ul>\n\n<p>Then the Meta login dialog opens.<br\/>After you log in successfully, a long-lived token is saved automatically. A blank page confirms that everything worked.<\/p>\n\n<h2 class=\"wp-block-heading\">6. Configure Ad Sync<\/h2>\n\n<p>Now go to <strong>Settings \u2192 Ad Sync<\/strong> and enter the remaining details from the <a href=\"https:\/\/adsmanager.facebook.com\/adsmanager\/manage\/accounts\" target=\"_blank\" rel=\"noreferrer noopener\">Ads Manager<\/a>. <\/p>\n\n<h2 class=\"wp-block-heading\">Why am I getting the &#8220;Custom Audience Terms Not Accepted&#8221; error?<\/h2>\n\n<p>This error means that the Custom Audience terms have not yet been accepted in your Meta ad account.<\/p>\n\n<p>By giving your consent, you confirm that you have lawfully collected the contact data and are permitted to use it for advertising on Meta, including the consent of the individuals concerned. At the same time, Meta ensures that the data is only used for matching, not shared with third parties, and deleted after the matching process. <\/p>\n\n<p>Here&#8217;s how you can fix this:<\/p>\n\n<ol class=\"wp-block-list\">\n<li>Open the terms page:<br\/><a href=\"https:\/\/business.facebook.com\/ads\/manage\/customaudiences\/tos\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/business.facebook.com\/ads\/manage\/customaudiences\/tos\/<\/a><\/li>\n\n\n\n<li>Select your ad account<\/li>\n\n\n\n<li>Accept the Custom Audience terms<\/li>\n<\/ol>\n\n<p>After that, the sync from Aivie should work normally.<\/p>\n\n<h2 class=\"wp-block-heading\">Summary<\/h2>\n\n<p>Create a Meta app, copy the App ID and secret, and connect them in Aivie. After the OAuth login, the integration is active and ready to use. <\/p>\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Go to https:\/\/developers.facebook.com\/apps and create an app. At the end, you\u2019ll get the App ID and an App Secret. You can then enter these in the Aivie Ad Sync plugin settings.<\/p>\n","protected":false},"featured_media":0,"template":"","categories":[],"tags":[],"FaqCategories":[996],"FaqTags":[],"class_list":["post-29480","faq","type-faq","status-publish","hentry","FaqCategories-integrations"],"acf":[],"featured_image_urls_v2":{"full":"","thumbnail":"","medium":"","medium_large":"","large":"","post-thumbnail":"","aiv_480w":"","woocommerce_thumbnail":"","woocommerce_single":"","woocommerce_gallery_thumbnail":""},"post_excerpt_stackable_v2":"<p>Go to https:\/\/developers.facebook.com\/apps and create an app. At the end, you\u2019ll get the App ID and an App Secret. You can then enter these in the Aivie Ad Sync plugin settings. What do I need a Meta App ID and a secret for? If you want to connect Aivie with Meta, authentication runs via your own app on Meta. This app ensures that: Aivie gets access to your ad account data is transferred securely you can control the connection at any time The App ID and the secret are the credentials for this connection. Step by step tutorial 1. Create&hellip;<\/p>\n","category_list_v2":"Uncategorized","author_info_v2":{"name":"","url":""},"comments_num_v2":"0 comments","_links":{"self":[{"href":"https:\/\/aivie.ch\/en\/wp-json\/wp\/v2\/faq\/29480","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aivie.ch\/en\/wp-json\/wp\/v2\/faq"}],"about":[{"href":"https:\/\/aivie.ch\/en\/wp-json\/wp\/v2\/types\/faq"}],"version-history":[{"count":6,"href":"https:\/\/aivie.ch\/en\/wp-json\/wp\/v2\/faq\/29480\/revisions"}],"predecessor-version":[{"id":29507,"href":"https:\/\/aivie.ch\/en\/wp-json\/wp\/v2\/faq\/29480\/revisions\/29507"}],"wp:attachment":[{"href":"https:\/\/aivie.ch\/en\/wp-json\/wp\/v2\/media?parent=29480"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aivie.ch\/en\/wp-json\/wp\/v2\/categories?post=29480"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aivie.ch\/en\/wp-json\/wp\/v2\/tags?post=29480"},{"taxonomy":"FaqCategories","embeddable":true,"href":"https:\/\/aivie.ch\/en\/wp-json\/wp\/v2\/FaqCategories?post=29480"},{"taxonomy":"FaqTags","embeddable":true,"href":"https:\/\/aivie.ch\/en\/wp-json\/wp\/v2\/FaqTags?post=29480"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}