title: How to adapt a PHP library to Codeigniter?
body: <p>Good mor(eve)ning guys. My question is a bit general:
  How can I adapt any PHP library (like facebook sdk for example) to use in CodeIgniter?</p>
  
  <p>Generally, when you download a PHP library and look to the examples provided, you load the library using <strong>include</strong> or <strong>require_once</strong>. What are the adjustments (and ways) to use <strong>$this->load->library($name, $params)</strong>?</p>
  
  <p>And how can I use the library after that: replacing <strong>$var = new Library($data)</strong> by ???</p>
  
  <p>If my question is not yet clear, please notify me.</p>
  
  <p>(bonus question: How to apply this to facebook-sdk ?)</p>
  
  <p>Thanks in advance.</p>