Pregunta borrada para crear una nueva mejor explicada.
public function __construct($config) {
if ((function_exists('session_status')
&& session_status() !== PHP_SESSION_ACTIVE) || !session_id()) {
session_start();
}
$_REQUEST += $_GET;
if($config == null){
$this->_ci =& get_instance();
$this->_ci->load->config('facebook');
$config = array(
'appId' => $this->_ci->config->item('appId'),
'secret' => $this->_ci->config->item('secret'),
);
}
if( !isset($config['appId']) || !isset($config['secret']) ){
$this->_ci =& get_instance();
$this->_ci->load->config('facebook');
$config['appId'] = $this->_ci->config->item('appId');
$config['secret'] = $this->_ci->config->item('secret');
}sa