Facebook 触发页面对象#
¥Facebook Trigger Page object
使用此对象接收页面个人资料字段或设置更新,或用户提及页面的更新。有关触发器本身的更多信息,请参阅 Facebook 触发器。
¥Use this object to receive updates when updates to your page profile fields or profile settings occur or someone mentions your page. Refer to Facebook Trigger for more information on the trigger itself.
Examples and templates
有关使用示例和模板以帮助你入门,请参阅 n8n 的 Facebook 触发器集成 页面。
¥For usage examples and templates to help you get started, refer to n8n's Facebook Trigger integrations page.
先决条件#
¥Prerequisites
使用此触发器之前,你需要在应用和页面中进行一些配置:
¥This Object requires some configuration in your app and page before you can use the trigger:
- 至少需要一位页面管理员授予你的应用
manage_pages权限。
¥At least one page admin needs to grant the manage_pages permission to your app.
2. 页面管理员至少需要拥有版主权限。如果他们没有这样做,他们将无法收到所有内容。
¥The page admin needs to have at least moderator privileges. If they don't, they won't receive all content. 3. 你还需要将应用添加到你的页面,并且可能需要访问 Graph API Explorer 并使用你的应用令牌执行以下调用:
¥You'll also need to add the app to your page, and you may need to go to the Graph API explorer and execute this call with your app token:
1 | |
触发器配置#
¥Trigger configuration
要使用此对象配置触发器:
¥To configure the trigger with this Object:
- 选择要连接的凭据。选择一个现有的 Facebook 应用凭证 对象或创建一个新的 Facebook 应用凭证 对象。
¥Select the Credential to connect with. Select an existing or create a new Facebook App credential. 2. 输入与你的凭据关联的应用的 APP ID。请参阅 Facebook 应用凭证 文档,了解更多信息。
¥Enter the APP ID of the app connected to your credential. Refer to the Facebook App credential documentation for more information. 3. 选择“页面”作为对象。
¥Select Page as the Object.
4. 字段名称或 ID:默认情况下,节点将使用 * 通配符过滤器触发所有可用的事件。如果你想限制事件,请使用 X 移除星号,并使用下拉菜单或表达式选择你感兴趣的更新。选项包括各个配置文件字段,以及:
¥Field Names or IDs: By default, the node will trigger on all the available events using the * wildcard filter. If you'd like to limit the events, use the X to remove the star and use the dropdown or an expression to select the updates you're interested in. Options include individual profile fields, as well as:
-
信息流:描述页面动态的大部分更改,包括帖子、点赞、分享等。
¥Feed: Describes most changes to a page's feed, including posts, likes, shares, and so on.
-
潜在客户生成:当页面的潜在客户开发设置发生更改时,通知你。
¥Leadgen: Notifies you when a page's lead generation settings change.
-
直播视频:当页面的直播视频状态发生更改时,通知你。
¥Live Videos: Notifies you when a page's live video status changes.
-
提及:当页面、评论等出现新的提及时,通知你。
¥Mention: Notifies you when new mentions in pages, comments, and so on occur.
-
商家评价:当页面的商家评价设置发生更改时,通知你。
¥Merchant Review: Notifies you when a page's merchant review settings change.
-
页面更改建议:当 Facebook 建议你更改 Facebook 主页时通知你。
¥Page Change Proposal: Notifies you when Facebook suggests proposed changes for your Facebook Page.
-
页面即将更改:通知你 Facebook 主页即将发生的更改。Facebook 已提出这些更改建议,用户可能需要在截止日期前接受或拒绝,否则更改将自动生效。
¥Page Upcoming Change: Notifies you about upcoming changes that will occur on your Facebook Page. Facebook has suggested these changes and they may have a deadline to accept or reject before automatically taking effect.
-
产品评论:当页面的产品评价设置发生更改时,通知你。
¥Product Review: Notifies you when a page's product review settings change.
-
评分:当页面的评分发生更改时,包括新增评分或用户评论/点赞评分时,通知你。
¥Ratings: Notifies you when a page's ratings change, including new ratings or when a user comments on or reacts to a rating.
-
视频:当页面上的视频编码状态发生变化时,通知你。
¥Videos: Notifies you when the encoding status of a video on a page changes. 5. 在“选项”中,启用“包含值”开关。如果未启用该选项,此对象类型将无法使用。
¥In Options, turn on the toggle to Include Values. This Object type fails without the option enabled.
相关资源#
¥Related resources
请参阅 主页 Webhook 和 Meta 的 Page Graph API 参考以获取更多信息。
¥Refer to Webhooks for Pages and Meta's Page Graph API reference for more information.