From 2b3e5decce6a64902666d829efd7ad53cc0d2961 Mon Sep 17 00:00:00 2001 From: Zombaya Date: Mon, 6 Aug 2018 20:38:24 +0200 Subject: [PATCH] Fix for #91 (#92) URL check to make sure that it starts with 'http' --- src/Http/GraphRequest.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Http/GraphRequest.php b/src/Http/GraphRequest.php index e4df87bda86..947bd47a423 100644 --- a/src/Http/GraphRequest.php +++ b/src/Http/GraphRequest.php @@ -415,6 +415,11 @@ private function _getDefaultHeaders() */ private function _getRequestUrl() { + //Send request with opaque URL + if (stripos($this->endpoint, "http") === 0) { + return $this->endpoint; + } + return $this->apiVersion . $this->endpoint; }