Skip to content

chauquang9/WebhookFacebook

Repository files navigation

Use Laravel 7

Webhook facebook version v8.0

About Subscribed App

The "https://developers.facebook.com/apps/323277902069047/webhooks/" page did not worked when we were subscribed app ==> we need to register through by Graph API

  1. Go to link "https://developers.facebook.com/tools/explorer/"
  2. Get all list subscribed ==> method GET vs link {page_id}/subscribed_apps
  3. we want to change subscribed_fields ==> method POST vs link {page_id}/subscribed_apps JSON
{
    "subscribed_fields": 
        [
            "messages",
            "messaging_postbacks",
            "messaging_optins",
            "feed",
            "company_overview"
        ]
}

About Long Live Token

https://developers.facebook.com/docs/facebook-login/access-tokens/refreshing/

About App

Add one webhook in facebook

  1. Go to filesystem.php and Constant
  2. Create new route with method GET and POST

About

facadeFaceBook_Laravel7

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published