From d947644609af468fcc6a75df1798ab2fbcdca682 Mon Sep 17 00:00:00 2001 From: leansoft Date: Wed, 16 Sep 2015 20:07:50 +0200 Subject: [PATCH 1/3] Bugfix for facebook scope delimter --- src/OAuth/OAuth2/Service/Facebook.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/OAuth/OAuth2/Service/Facebook.php b/src/OAuth/OAuth2/Service/Facebook.php index 4117f02b..3c30f17a 100644 --- a/src/OAuth/OAuth2/Service/Facebook.php +++ b/src/OAuth/OAuth2/Service/Facebook.php @@ -197,4 +197,11 @@ public function getDialogUri($dialogPath, array $parameters) $query = http_build_query($parameters); return new Uri($baseUrl . '?' . $query); } + /** + * {@inheritdoc} + */ + protected function getScopesDelimiter() + { + return ','; + } } From ffd856e42e6b147235a736191307b3cbf618e65a Mon Sep 17 00:00:00 2001 From: leansoft Date: Wed, 16 Sep 2015 22:20:05 +0200 Subject: [PATCH 2/3] Autoload fix --- src/OAuth/ServiceFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OAuth/ServiceFactory.php b/src/OAuth/ServiceFactory.php index cdb24406..fc332dd0 100644 --- a/src/OAuth/ServiceFactory.php +++ b/src/OAuth/ServiceFactory.php @@ -117,7 +117,7 @@ public function createService( foreach ($this->serviceBuilders as $version => $buildMethod) { $fullyQualifiedServiceName = $this->getFullyQualifiedServiceName($serviceName, $version); - if (class_exists($fullyQualifiedServiceName)) { + if (class_exists($fullyQualifiedServiceName, false)) { return $this->$buildMethod( $fullyQualifiedServiceName, $credentials, From 7876036c9ae15d165bc21da128e38c90de4ae924 Mon Sep 17 00:00:00 2001 From: leansoft Date: Wed, 16 Sep 2015 22:20:57 +0200 Subject: [PATCH 3/3] Revert "Autoload fix" This reverts commit ffd856e42e6b147235a736191307b3cbf618e65a. --- src/OAuth/ServiceFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OAuth/ServiceFactory.php b/src/OAuth/ServiceFactory.php index fc332dd0..cdb24406 100644 --- a/src/OAuth/ServiceFactory.php +++ b/src/OAuth/ServiceFactory.php @@ -117,7 +117,7 @@ public function createService( foreach ($this->serviceBuilders as $version => $buildMethod) { $fullyQualifiedServiceName = $this->getFullyQualifiedServiceName($serviceName, $version); - if (class_exists($fullyQualifiedServiceName, false)) { + if (class_exists($fullyQualifiedServiceName)) { return $this->$buildMethod( $fullyQualifiedServiceName, $credentials,