debug-webhooks

โดย facebook

แก้ไขปัญหาเว็บฮุคสำหรับแอป Meta — ตรวจสอบการสมัครใช้งานที่ใช้งานอยู่ ระบุการตั้งค่าที่ผิดพลาด และส่งเพย์โหลดทดสอบเพื่อยืนยันการส่งมอบ ใช้เมื่อ…

npx skills add https://github.com/facebook/agentic-tools --skill debug-webhooks

Debug Webhooks

Diagnose and fix webhook delivery issues for a Meta app.

Workflow

  1. Start tracking. Before any other work, call devtools_skill_invocation with action start and skill_name debug-webhooks. Pass skill_name debug-webhooks on every devtools_* tool call in the following steps.

  2. Get context. Ask the user for:

    • The app name or ID — if they give a name (or aren't sure of the ID), resolve it to an app_id via devtools_app_list (action list); if several apps match or it's ambiguous, show the candidates (name, ID, viewer role) and ask the user to pick
    • What's going wrong (not receiving events? wrong data? specific topic?)
  3. Inspect current state. Run in parallel:

    • devtools_webhook_list with action list_subscriptions — all active subscriptions
    • devtools_webhook_list with action list_topics — all available topics (for comparison)
  4. Diagnose. Check for common issues:

    No subscriptions found

    • The topic the user expects events from has no active subscription
    • Suggest using /webhook-setup to create one

    Subscription exists but no events received

    • Send a test payload: devtools_webhook_test with action test_send for the relevant topic and field
    • If test fails: callback URL may be down, unreachable, or not returning 200
    • If test succeeds but real events don't arrive: the issue is likely on the app side (permissions, page subscriptions, etc.)

    Wrong fields subscribed

    • Compare subscribed fields against what the user expects to receive
    • If fields are missing: use devtools_webhook_manage with action update_fields, passing the missing fields via add_fields
    • If extra fields cause noise: use devtools_webhook_manage with action update_fields, passing unwanted fields via remove_fields

    Multiple subscriptions on same topic

    • Flag potential conflicts or duplicate delivery
  5. Test delivery. For each relevant subscription:

    • Call devtools_webhook_test with action test_send
    • Report whether the test payload was accepted by the callback endpoint
  6. Report findings:

    Report Format

    Active Subscriptions

    • Topic, fields, callback URL for each

    Issues Found

    • Each issue with severity (critical / warning / info)
    • Root cause analysis
    • Suggested fix

    Test Results

    • Topic/field tested → success or failure
    • Response details if available

    Recommended Actions

    • Ordered list of fixes to apply
  7. Apply fixes if the user agrees:

    • Add missing fields via update_fields
    • Remove unwanted fields via update_fields
    • Callback URL changes: update_fields cannot change the callback URL — it has no callback_url parameter and silently ignores one. To change the URL, re-run subscribe for the topic with the new URL and verify token: subscribe is an upsert (create-or-update), so it overwrites the URL in place. You do NOT need to unsubscribe first.
  8. End tracking. After completing all preceding steps, call devtools_skill_invocation with action end and skill_name debug-webhooks.

Common Issues Reference

SymptomLikely CauseFix
No events receivedNo subscription existsSubscribe to the topic
No events receivedCallback URL returns non-200Fix server endpoint
No events receivedApp lacks page/account subscriptionSubscribe the page to the app
Partial eventsMissing fields in subscriptionAdd fields via update_fields
Duplicate eventsMultiple subscriptions on same topicUnsubscribe duplicates
Test works, real events don'tPermission or page-level issueCheck app permissions and page subscriptions
Need to change callback URLupdate_fields has no callback_url param (silently ignored)Re-run subscribe for the topic with the new URL + verify token — it upserts and overwrites the URL in place; no unsubscribe needed

Skills เพิ่มเติมจาก facebook

api-health
facebook
Monitor API health for a Meta app — check rate limits, call volume, and API deprecations. Use to diagnose throttling, plan capacity, or prepare for API version…
official
api-integration
facebook
แนะนำนักพัฒนาในการตั้งค่าการเชื่อมต่อ Meta API ตั้งแต่เริ่มต้น — ค้นหา API ที่เหมาะสม ดึงคู่มือการตั้งค่า ข้อกำหนดการยืนยันตัวตน…
official
app-review-prep
facebook
เตรียมแอป Meta สำหรับ App Review — ตรวจสอบสถานะปัจจุบัน ข้อกำหนดที่ค้างอยู่ สิทธิ์ที่ได้รับ และประวัติการส่ง ใช้ก่อนส่งแอป…
official
webhook-setup
facebook
Set up webhooks for a Meta app end-to-end — discover available topics, subscribe to fields, and verify with a test payload. Use when configuring webhooks for…
official
buck2-rule-basics
facebook
แนะนำผู้ใช้ผ่านการเขียนกฎ Buck2 ตัวแรก เพื่อเรียนรู้แนวคิดพื้นฐาน ได้แก่ กฎ แอ็กชัน เป้าหมาย คอนฟิกูเรชัน การวิเคราะห์ และ select() ใช้…
official
add-ir-instruction
facebook
Guide for adding a new IR instruction to the Hermes compiler. Use when the user asks to add, create, or define a new IR instruction (Inst/Instruction) in the…
official
binary-size-analysis
facebook
ทักษะนี้ควรใช้เมื่อผู้ใช้ต้องการวิเคราะห์การเปลี่ยนแปลงขนาดไบนารีของ hermesvm ในช่วงของคอมมิต ใช้เมื่อผู้ใช้กล่าวถึง "binary size",…
official
gc-safe-coding
facebook
สำหรับคำอธิบายและเหตุผลโดยละเอียด โปรดดูที่ doc/GCSafeCoding.md
official