Codice PHP:
public function getGraphObject($type 'Facebook\GraphObject') {
    return (new 
GraphObject($this->responseData))->cast($type);
  }