Facebook 潜在客户广告凭证#
¥Facebook Lead Ads credentials
你可以使用以下凭据验证以下节点:
¥You can use these credentials to authenticate the following nodes:
支持的身份验证方法#
¥Supported authentication methods
- OAuth2
相关资源#
¥Related resources
有关服务的更多信息,请参阅 Facebook 潜在客户广告文档。
¥Refer to Facebook Lead Ads' documentation for more information about the service.
在 n8n 网站上查看 示例工作流及相关内容。
¥View example workflows and related content on n8n's website.
使用 OAuth2#
¥Using OAuth2
要配置此凭据,你需要一个 面向开发者的 Meta 账户以及:
¥To configure this credential, you'll need a Meta for Developers account and:
- 客户端 ID
¥A Client ID
- 客户端密钥:
¥A Client Secret
要同时获取 API 密钥和应用 ID,请使用 Facebook 登录产品或 Facebook 企业登录产品运行 创建 Meta 应用。
¥To get both, create a Meta app with either the Facebook Login product or the Facebook Login for Business product.
使用 Facebook 企业版登录创建应用并设置凭据:
¥To create your app and set up the credential with Facebook Login for Business:
- 前往 Meta Developer 应用仪表盘,选择“创建应用”。
¥Go to the Meta Developer App Dashboard and select Create App. 2. 如果你有企业作品集,并且准备将应用连接到它,请选择企业作品集。如果你没有业务组合或尚未准备好将应用连接到业务组合,请选择“我暂时不想连接业务组合”,然后选择“下一步”。“用例”页面打开。
¥If you have a business portfolio and you're ready to connect the app to it, select the business portfolio. If you don't have a business portfolio or you're not ready to connect the app to the portfolio, select I don’t want to connect a business portfolio yet and select Next. The Use cases page opens. 3. 选择“其他”,然后选择“下一步”。
¥Select Other, then select Next. 4. 选择“业务”和“下一步”。
¥Select Business and Next. 5. 填写必要信息:
¥Complete the essential information:
-
添加应用名称
¥Add an App name.
-
添加一个应用联系人邮箱。
¥Add an App contact email.
-
你可以在此处连接到业务组合,也可以跳过。
¥Here again you can connect to a business portfolio or skip it. 6. 选择“创建应用”。“将产品添加到你的应用”页面打开。
¥Select Create app. The Add products to your app page opens. 7. 选择“Facebook 企业版登录”。打开此产品的“设置”页面。
¥Select Facebook Login for Business. The Settings page for this product opens. 8. 从你的 n8n 凭据中复制 OAuth 重定向 URL。
¥Copy the OAuth Redirect URL from your n8n credential. 9. 在 Meta 应用的客户端 OAuth 设置中,将该 URL 粘贴为“有效的 OAuth 重定向 URI”。
¥In your Meta app settings in Client OAuth settings, paste that URL as the Valid OAuth Redirect URIs. 10. 从左侧菜单中选择“应用设置”>“基本”。
1 | |
-
复制应用 ID 并将其输入到 n8n 中。
¥Copy the App ID and enter it as the Client ID within your n8n credential. 12. 复制应用密钥并将其作为客户端 ID 输入到你的 n8n 凭据中。
¥Copy the App Secret and enter it as the Client Secret within your n8n credential.
你的凭据现在应该可以成功连接,但你需要先完成 Meta 应用的上线步骤,才能将其与 Facebook 潜在客户广告触发器 一起使用。以下是你需要执行的操作的概要:
¥Your credential should successfully connect now, but you'll need to go through the steps to take your Meta app live before you can use it with the Facebook Lead Ads trigger. Here's a summary of what you'll need to do:
- 在 Meta 应用中,从左侧菜单中选择“应用设置”>“基本”。
¥In your Meta app, select App settings > Basic from the left menu. 2. 请输入隐私政策 URL。(安装应用 "直播中。" 的必要条件)
¥Enter a Privacy Policy URL. (Required to take the app "Live.") 3. 选择“保存更改”。
¥Select Save changes. 4. 在页面顶部,将应用模式从“开发”切换到“正式”。
¥At the top of the page, toggle the App Mode from Development to Live.
5. Facebook 企业版登录需要 public_profile 的高级访问权限。要添加它,请转到“应用审核”>“权限和功能”。
¥Facebook Login for Business requires Advanced Access for public_profile. To add it, go to App Review > Permissions and Features.
6. 搜索 public_profile 并选择“请求高级访问权限”。
¥Search for public_profile and select Request advanced access.
7. 完成 商业验证 的步骤。
¥Complete the steps for business verification. 8. 使用 潜在客户广告测试工具 触发一些演示表单提交并测试你的工作流。
¥Use the Lead Ads Testing Tool to trigger some demo form submissions and test your workflow.
有关创建应用、必填字段(例如隐私政策 URL)以及添加产品的更多信息,请参阅 Meta 的 创建应用 文档。
¥Refer to Meta's Create an app documentation for more information on creating an app, required fields like the Privacy Policy URL, and adding products.
有关应用模式和切换到实时模式的更多信息,请参阅 应用模式 和 发布 | 应用类型。
¥For more information on the app modes and switching to Live mode, refer to App Modes and Publish | App Types.