I have:
App/Vendor/Facebook
App/Vendor/Facebook/facebook.php
in App/Controller/AppController.php I used:
App::uses('facebook', 'Vendor/Facebook');
Then the AppController class is:
class AppController extends Controller {
public $fb;
public function beforeFilter() {
$fb = new Facebook();
}
}
Here is the error I got:
Fatal error: Class 'Facebook' not found in /home/users/example.com/www/app/Controller/AppController.php on line 42
How is this possible? What is wrong?
Thanks!