Facebook Webhook user ID does not match logged-in user Facebook ID (Laravel)
03:50 16 Apr 2026

I am integrating Facebook login and webhook functionality in my Laravel application.

What I am trying to achieve:

  • Users connect their Facebook account to my app using Facebook OAuth.

  • I store their Facebook user ID in my database.

  • When a user likes a post, I receive a webhook from Facebook.

  • Based on the webhook data, I want to identify the user and reward them with points.

Problem:
The Facebook user ID I receive in the webhook does not match the Facebook user ID I stored during login.

Example:

  • Stored Facebook ID (from login): 123456789

  • Webhook from.id: 987654321

Because of this mismatch, I am unable to map the webhook event to my internal user (member_id).

laravel metadata