1 | <?php |
||
15 | class FacebookProvider implements |
||
16 | ProviderInterface |
||
17 | { |
||
18 | use ProviderTrait; |
||
19 | |||
20 | /** |
||
21 | * @var string |
||
22 | */ |
||
23 | protected $uri; |
||
24 | |||
25 | /** |
||
26 | * @var string |
||
27 | */ |
||
28 | protected $appId; |
||
29 | |||
30 | /** |
||
31 | * @var array |
||
32 | */ |
||
33 | protected $clientOptions; |
||
34 | |||
35 | /** |
||
36 | * @var array |
||
37 | */ |
||
38 | protected $endpointParams = []; |
||
39 | |||
40 | /** |
||
41 | * @param $options |
||
42 | * |
||
43 | * @throws Exception\InvalidArgumentException |
||
44 | */ |
||
45 | public function __construct($options) |
||
67 | |||
68 | /** |
||
69 | * @return string |
||
70 | */ |
||
71 | public function getIdentifier() |
||
75 | |||
76 | /** |
||
77 | * @param $userId |
||
78 | * @param $accessToken |
||
79 | * @param null $errorMessage |
||
80 | * |
||
81 | * @throws Exception\ClientException |
||
82 | * |
||
83 | * @return bool |
||
84 | */ |
||
85 | public function validate($userId, $accessToken, &$errorMessage = null) |
||
115 | |||
116 | /** |
||
117 | * @param Response $response |
||
118 | * |
||
119 | * @throws Exception\ClientException |
||
120 | * |
||
121 | * @return mixed |
||
122 | */ |
||
123 | protected function decodeBody(Response $response) |
||
142 | } |
||
143 |