Facebook Webhook订阅Feed事件无触发问题求助
Troubleshooting Steps & Possible Fixes
Let's break down the most likely causes and how to resolve them:
Verify Required Permissions for Feed Events
For development-mode apps, yourpage_access_tokenmust have thepages_show_listandpages_read_engagementpermissions to receive Feed event webhooks. Even if your subscription status looks valid, missing these permissions will block event pushes.
Run this debug call to check your token's permissions:GET /debug_token?input_token={{test_page_access_token}}&access_token={{app_access_token}}Ensure both permissions are listed in the
scopesarray.Check if You're Subscribed to All Relevant Fields
- The
feedfield covers posts and comments, but likes (reactions) require a separatereactionsfield subscription. You won't get like notifications unless you add this field to your webhook setup. - Double-check your webhook configuration in the Facebook Developer Portal to confirm
feedandreactionsare both enabled for your page.
- The
Confirm Event Trigger is from a Test User/Admin
In development mode, webhook events only fire for actions taken by the app's admins, developers, or registered test users. If you're using a regular (non-test) account to post/comment/like, no event will be sent. Add your test account to the app's "Roles" section in the Developer Portal and retry the actions with that account.Upgrade Your API Version
You're using API v3.0, which is quite outdated. Facebook has made significant changes to webhook event logic in newer versions (current stable is v18.0). Old versions may have bugs or deprecated behavior that prevents Feed events from pushing.
Re-subscribe to the events using a newer API version and test again.Validate Callback URL Handling for Feed Events
Even though Messages work, Feed events have a different payload structure. Make sure your endpoint:- Returns a
200 OKresponse within 10 seconds of receiving the request - Doesn't have any logic that specifically filters out Feed event types
Use your ngrok dashboard logs to check if Feed event requests are even reaching your endpoint (if they are but failing, you'll see errors there).
- Returns a
Check Development Mode Restrictions
Some Feed event subtypes may require app review to work fully, even in development mode. Head to the Facebook Developer Portal's Webhooks section for your app, and check if there are any warnings or pending review prompts related to thefeedorreactionsfields.
内容的提问来源于stack exchange,提问作者Frederik Claus

