title: Facebook PHP SDK not loading as a library in CodeIgniter
body: <p>I'm having a problem simply loading the Facebook PHP SDK (v3.1.1) as library in CodeIgniter 2.0.</p>
  
  <p>1) I've put the latest Facebook SDK files ('facebook.php', 'base_facebook.php', and 'fb_ca_chain_bundle.crt' ) into my application/libraries folder. </p>
  
  <p>2) I've changed the filename of 'facebook.php' to 'Facebook.php'.</p>
  
  <p>3) In my controller, I have the following code: </p>
  
  <pre><code>$fb_config = array(
     'appId'  =&gt; 'XXXXXXX',          
     'secret' =&gt; 'XXXXXXX'
    );
  $this-&gt;load-&gt;library('facebook', $fb_config);
  
  $this-&gt;load-&gt;view('home_view');
  </code></pre>
  
  <p>But I just get an error and the View does not get loaded.</p>
  
  <p>If I comment out the line </p>
  
  <pre><code>  $this-&gt;load-&gt;library('facebook', $fb_config);
  </code></pre>
  
  <p>then the View loads correctly, so I know the problem is here.</p>
  
  <p>4) If I try to autoload the facebook library, I get similar results.</p>
  
  <p>Can anyone help? Thanks.</p>