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
- Go to link "https://developers.facebook.com/tools/explorer/"
- Get all list subscribed ==> method GET vs link {page_id}/subscribed_apps
- 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"
]
}
https://developers.facebook.com/docs/facebook-login/access-tokens/refreshing/
- the project we should use ngrok to debug
- Run ngrok :
./ngrok http 8000
- Debug : http://localhost:4040/inspect/http
- Go to filesystem.php and Constant
- Create new route with method GET and POST