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 for Developers 账户以及:
🌐 To configure this credential, you'll need a Meta for Developers account and:
- 客户端 ID
- 客户端密钥
要同时获得两者,创建一个 Meta 应用,并选择 Facebook 登录产品或 Facebook 商务登录产品之一。
🌐 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 开发者 应用仪表板 并选择 创建应用。
- 如果你有商业组合并且准备将应用连接到它,请选择该商业组合。如果你没有商业组合或尚未准备好将应用连接到组合,请选择我暂时不想连接商业组合,然后选择下一步。使用场景页面将打开。
- 选择 其他,然后选择 下一步。
- 选择 业务 然后点击 下一步。
- 填写必要信息:
- 添加一个应用名称。
- 添加应用联系邮箱。
- 你可以在此处连接到业务组合,也可以跳过。
- 选择 创建应用。将产品添加到你的应用 页面将打开。
- 选择Facebook 商业登录。该产品的设置页面将打开。
- 从你的 n8n 凭证中复制 OAuth 重定向 URL。
- 在你的 Meta 应用设置中的 客户端 OAuth 设置 中,将该 URL 粘贴为 有效的 OAuth 重定向 URI。
- 从左侧菜单中选择 应用设置 > 基本。
- 复制 应用 ID 并在你的 n8n 凭证中将其作为 客户端 ID 输入。
- 复制 应用密钥 并在你的 n8n 凭证中将其作为 客户端密钥 输入。
你的凭证现在应该可以成功连接,但在你可以将其与 Facebook 潜在客户广告触发器 一起使用之前,你需要按照步骤将你的 Meta 应用上线。以下是你需要做的总结:
🌐 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 应用中,从左侧菜单选择 应用设置 > 基本信息。
- 输入 隐私政策网址。(必须填写以使用“Live”应用。)
- 选择 保存更改。
- 在页面顶部,将 应用模式 从 开发 切换到 实时。
- 企业版 Facebook 登录需要
public_profile的高级访问权限。要添加它,请前往 应用审核 > 权限和功能。 - 搜索
public_profile并选择 请求高级访问。 - 完成业务验证的步骤。
- 使用 Lead Ads 测试工具 触发一些演示表单提交并测试你的工作流程。
有关创建应用、所需字段(如隐私政策 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.