Example #1
0
 /**
  * Facebook constructor
  *
  * @param Config $config
  *
  * @throws \Facebook\Exceptions\FacebookSDKException
  */
 public function __construct(Config $config)
 {
     if ($config->isEnabled()) {
         parent::__construct(['app_id' => $config->getApiKey(), 'app_secret' => $config->getApiSecret(), 'default_graph_version' => $config->getVersion()]);
     }
 }