I am trying to activate the receipt of facebook messages on my webhook, but according to the facebook documentation there is no longer an option .. for example, in the print below I am looking for the "messages" permission but it does not exist anymore ...
Currently I installed the messenger component in my application, however I realized that if I go manually and activate the receipt of the pages it works, however as I said "manual", I would like to automate this via the option of "subscriptions".

I added in my code the sending of the "messages" field, however it also has no effect ...
$facebook = new Facebook();
$facebook->setDefaultAccessToken($page['access_token']);
//?subscribed_fields=leadgen
$response = $facebook->post(
'/' . $page['id'] . '/subscribed_apps',
[
'subscribed_fields' => [
'leadgen',
'feed',
'messages',
],
],
$page['access_token']
);
