List all pages the user manages

Asked

Viewed 110 times

0

Currently I use as follows to get certain page that the user manages:

$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'];

however i would like to get all pages and assemble an array with the data of each page, name,id,accesstoken and then print only the name of each page so that it gets a list, if someone can help me already I appreciate the attention.

  • That way you just one page?

  • I need you to return the list of all the groups the user manages and get the name and id of each fanpage and print only the name of each page.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.