Read a Facebook Page's webhook subscription
Returns the webhook fields Zernio's app is subscribed to on the connected Page, read live from Meta.
Use it to confirm leadgen is present: a Page missing it keeps delivering every other event while
lead ads stop arriving, with nothing to indicate it.
Authorization
bearerAuth API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
In: header
Path Parameters
Response Body
application/json
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.connect.getPageWebhookSubscription({ path: { accountId: 'account_abc123', },});console.log(data);{ "pageId": "string", "appSubscribed": true, "leadgen": true, "subscribedFields": [ "string" ], "warning": "string"}Complete Meta business login
Facebook Login for Business redirect target. Meta supplies the single-use authorization code and the authenticated state returned by connectAds. The state expires after 30 minutes and binds the user, profile, Page selection and ad-account scope. No bearer token is sent by the browser. Success reconnects only metaads and redirects to the original redirect_url. Invalid state returns 400; inaccessible profiles or missing ads access cannot connect. Dashboard logins with several Pages redirect to the Facebook Page picker with an encrypted selectionToken valid for ten minutes. Listing and selecting require the initiating user and current profile access. No plaintext platform token is returned to the browser.
Re-subscribe a Facebook Page to Zernio's webhooks
Re-sends the full field set to Meta and returns the subscription read back afterwards. Meta only honours the field set sent at subscribe time, so a Page connected before a field existed stays without it until this runs. The response reflects what Meta actually granted, not what was requested.