| Conditions | 3 |
| Paths | 5 |
| Total Lines | 24 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 20 | public function setValue($accessToken) |
||
| 21 | { |
||
| 22 | $fb = new \Facebook\Facebook([ |
||
| 23 | |||
| 24 | 'app_id' => $this->appId, |
||
| 25 | 'app_secret' => $this->appSecret, |
||
| 26 | 'default_graph_version' => $this->graf_version, |
||
| 27 | ]); |
||
| 28 | $fb->setDefaultAccessToken($accessToken); |
||
| 29 | |||
| 30 | try { |
||
| 31 | $response = $fb->get('/me?fields=id,name,email'); |
||
| 32 | |||
| 33 | $this->userNode = $response->getGraphUser(); |
||
| 34 | } catch (Facebook\Exceptions\FacebookResponseException $e) { |
||
|
|
|||
| 35 | // When Graph returns an error |
||
| 36 | echo 'Graph returned an error: '.$e->getMessage(); |
||
| 37 | exit; |
||
| 38 | } catch (Facebook\Exceptions\FacebookSDKException $e) { |
||
| 39 | // When validation fails or other local issues |
||
| 40 | echo 'Facebook SDK returned an error: '.$e->getMessage(); |
||
| 41 | exit; |
||
| 42 | } |
||
| 43 | } |
||
| 44 | public function getValue() |
||
| 49 |
Scrutinizer analyzes your
composer.json/composer.lockfile if available to determine the classes, and functions that are defined by your dependencies.It seems like the listed class was neither found in your dependencies, nor was it found in the analyzed files in your repository. If you are using some other form of dependency management, you might want to disable this analysis.