Skip to content

Commit 486ee85

Browse files
committed
Merge pull request #448 from flavioheleno/original-lib
Proper API Version handling for FB's URLs
2 parents d47849e + 914cc3b commit 486ee85

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/OAuth/OAuth2/Service/Facebook.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ protected function parseAccessTokenResponse($responseBody)
169169

170170
$token = new StdOAuth2Token();
171171
$token->setAccessToken($data['access_token']);
172-
172+
173173
if (isset($data['expires'])) {
174174
$token->setLifeTime($data['expires']);
175175
}
@@ -198,6 +198,14 @@ public function getDialogUri($dialogPath, array $parameters)
198198
return new Uri($baseUrl . '?' . $query);
199199
}
200200

201+
/**
202+
* {@inheritdoc}
203+
*/
204+
protected function getApiVersionString()
205+
{
206+
return empty($this->apiVersion) ? '' : '/v' . $this->apiVersion;
207+
}
208+
201209
/**
202210
* {@inheritdoc}
203211
*/

0 commit comments

Comments
 (0)