title: How to auto load Facebook ads SDK
body: <p>I am trying to load Facebook ads SDK class via composer. i am going to share what i have done and where i stuck.</p>
  
  <p>Sdk patch </p>
  
  <pre><code>/system/services/facebook/FacebookAds/
  </code></pre>
  
  <p>Where i am loading class</p>
  
  <pre><code>/facebook.php
  </code></pre>
  
  <p>what files are exits in SDK root</p>
  
  <p><a href="https://i.stack.imgur.com/gPzg6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gPzg6.png" alt="enter image description here"></a></p>
  
  <p>Here is my <code>facebook.php</code> code.basically i am following to official facebook Github documentation.</p>
  
  <pre><code>        use FacebookAds\Api;
  
          // Initialize a new Session and instanciate an Api object
          Api::init("*********", "************", "***************");
  
          // The Api object is now available trough singleton
          $api = Api::instance();
  </code></pre>
  
  <p>I am gating <code>Fatal error: Class 'FacebookAds\Api' not found</code> Error. simple is what class i am hitting this actually not exits where my code finding. basically i am confusing about how composer actually work. i am using composer first time. Kindly clear me with any example using my patch reference and explain me how actually composer auto load all class files or is there any manual way to done this. ?</p>