I currently use the following form to get a certain page that the user administers:
$graphObject = $response->getDecodedBody();
$fbUserName = $graphObject['name'];
$fbUserEmail = $graphObject['email'];
$fbUserID = $graphObject['id'];
$pages = $graphObject['accounts'];
// Obtendo determinada página, onde "0" é o numero da página no json:
$singlePage = $pages['data']['0'];
$pageName = $singlePage['name'];
$pagetoken = $singlePage['access_token'];
$pageCategory= $singlePage['category'];
$pageID = $singlePage['id'];
But I would like to get all the pages and mount an array with the data of each page, name, id, accesstoken and then print only the name of each page so that it is a list if someone can help me right now Thank you for your attention.