title: Configure Facebook in Hybridauth for Yii Framework
body: <p>I'm using Yii framework and HybridAuth for social login action,i have google and yahoo works fine, but i can't make facebook and twitter to work.</p>
  
  <p>Do i need an Https:// domain for that ? or is just some configuration to add ?</p>
  
  <p>When i try to login using facebook or twitter i get this PHP Warning :</p>
  
  <blockquote>
    <p>include(DefaultController.php) [function.include]: failed to open stream:
    No such file or directory</p>
  </blockquote>
  
  <p>The error show up at vendors\yii_1.1.10\YiiBase.php(418):</p>
  
  <pre><code>{
  407                     foreach(self::$_includePaths as $path)
  408                     {
  409                         $classFile=$path.DIRECTORY_SEPARATOR.$className.'.php';
  410                         if(is_file($classFile))
  411                         {
  412                             include($classFile);
  413                             break;
  414                         }
  415                     }
  416                 }
  417                 else
  418                     include($className.'.php');
  419             }
  420             else  // class name with namespace in PHP 5.3
  421             {
  422                 $namespace=str_replace('\\','.',ltrim($className,'\\'));
  423                 if(($path=self::getPathOfAlias($namespace))!==false)
  424                     include($path.'.php');
  425                 else
  426                     return false;
  427             }
  428             return class_exists($className,false) || interface_exists($className,false);
  429         }
  430         return true;
  </code></pre>
  
  <p>Here is my main config file</p>
  
  <pre><code>'modules'=&gt;array('admin',
          'hybridauth' =&gt; array(
              'baseUrl' =&gt; 'http://'. $_SERVER['SERVER_NAME'] . '/hybridauth', 
              'withYiiUser' =&gt; false, // Set to true if using yii-user
              "providers" =&gt; array ( 
  
                  "yahoo" =&gt; array ( 
                      "enabled" =&gt; true 
                  ),
  
                  "google" =&gt; array ( 
                      "enabled" =&gt; true,
                      "keys"    =&gt; array ( "id" =&gt; "[private]", "secret" =&gt; "[private]" ),
                      "scope"   =&gt; ""
                  ),
  
                  "facebook" =&gt; array ( 
                      "enabled" =&gt; true,
                      "keys"    =&gt; array ( "id" =&gt; "[private]", "secret" =&gt; "[private]" ),
                      "scope"   =&gt; "email,publish_stream", 
                      "display" =&gt; "" 
                  ),
  
                  "twitter" =&gt; array ( 
                      "enabled" =&gt; true,
                      "keys"    =&gt; array ( "key" =&gt; "[private]", "secret" =&gt; "[private]" ) 
                  )
              )
          )
      ),
  </code></pre>