We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb052da commit 91a861fCopy full SHA for 91a861f
FacebookStrategy.php
@@ -8,7 +8,7 @@ class FacebookStrategy extends OpauthStrategy {
8
'scope' => 'email', // Default scope for necessary permissions
9
);
10
11
- private $api_version = 'v12.0'; // Update to the latest supported version
+ private $api_version = 'v17.0'; // Update to the latest supported version
12
13
public function request() {
14
$params = array(
@@ -119,6 +119,10 @@ private function me($access_token) {
119
$fields = $this->strategy['fields'];
120
}
121
122
+ if (!empty($this->strategy['api_version'])) {
123
+ $this->api_version = $this->strategy['api_version'];
124
+ }
125
+
126
$me = $this->serverGet(
127
"https://graph.facebook.com/{$this->api_version}/me",
128
array(
0 commit comments