public function setupConfig(SocialNetwork $socialNetwork) { if (is_null($this->config)) { $this->config = array('app_id' => $socialNetwork->getClientId(), 'app_secret' => $socialNetwork->getClientSecret()); } }
public function setupConfig(SocialNetwork $socialNetwork) { if (is_null($this->config)) { $this->config = array('app_id' => $socialNetwork->getClientId(), 'app_secret' => $socialNetwork->getClientSecret(), 'default_graph_version' => 'v2.6', 'persistent_data_handler' => 'session'); } }