Example #1
0
 public function getPage($page_id)
 {
     // request user infos
     $response = $this->signedRequest($page_id);
     $response = json_decode($response);
     if (!isset($response->id) || isset($response->error)) {
         throw new Exception('User page listing request failed: Provider returned an invalid response. ' . 'HTTP client state:(' . $this->httpClient->getState() . ')', Exception::USER_PROFILE_REQUEST_FAILED, $this);
     }
     return Page::generateFromResponse($response, $this);
 }