Skip to content

Commit

Permalink
Merge pull request #448 from flavioheleno/original-lib
Browse files Browse the repository at this point in the history
Proper API Version handling for FB's URLs
  • Loading branch information
elliotchance committed Dec 8, 2015
2 parents d47849e + 914cc3b commit 486ee85
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/OAuth/OAuth2/Service/Facebook.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ protected function parseAccessTokenResponse($responseBody)

$token = new StdOAuth2Token();
$token->setAccessToken($data['access_token']);

if (isset($data['expires'])) {
$token->setLifeTime($data['expires']);
}
Expand Down Expand Up @@ -198,6 +198,14 @@ public function getDialogUri($dialogPath, array $parameters)
return new Uri($baseUrl . '?' . $query);
}

/**
* {@inheritdoc}
*/
protected function getApiVersionString()
{
return empty($this->apiVersion) ? '' : '/v' . $this->apiVersion;
}

/**
* {@inheritdoc}
*/
Expand Down

0 comments on commit 486ee85

Please sign in to comment.