Codice PHP:
public function getGraphObjectList($type = 'Facebook\GraphObject') {
$out = array();
$data = $this->responseData->data;
for ($i = 0; $i < count($data); $i++) {
$out[] = (new GraphObject($data[$i]))->cast($type);
}
return $out;
}
Codice PHP:
public function getGraphObjectList($type = 'Facebook\GraphObject') {
$out = array();
$data = $this->responseData->data;
for ($i = 0; $i < count($data); $i++) {
$out[] = (new GraphObject($data[$i]))->cast($type);
}
return $out;
}