Skip to content
Snippets Groups Projects
Commit c4da375a authored by Hemangi Gokhale's avatar Hemangi Gokhale Committed by Hemangi Gokhale
Browse files

Issue #2939690 by Hemangi Gokhale: Update Facebook PHP SDK

parent 8b92e8c2
No related branches found
Tags 8.x-1.0-beta1
No related merge requests found
......@@ -64,13 +64,15 @@ class FacebookPostCollector {
/**
* Set the Facebook client.
*
* @throws \Facebook\Exceptions\FacebookSDKException
*/
public function setFacebookClient() {
if (NULL === $this->facebook) {
$this->facebook = new Facebook([
'app_id' => $this->appId,
'app_secret' => $this->appSecret,
'default_graph_version' => 'v2.8',
'default_graph_version' => 'v2.10',
'default_access_token' => $this->defaultAccessToken(),
]);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment