composer/composer — Issue #396: Autoloader does not autoload Facebook SDK
Author: codecowboy
Created: 2012-03-06 16:16:39+00:00
State: open

I have included the following package in my project

http://packagist.org/packages/codecowboy/fb-php-sdk

The following was added to autoload_namespaces.php

$vendorDir . '/codecowboy/fb-php-sdk/src',
'Twig_' => $vendorDir . '/twig/twig/lib/',
);

And I'm doing "require_once 'vendor/.composer/autoload.php';" in index.php

But autoloading isn't working - Fatal error: Class 'Facebook' not found in /Users/t-lmackenzie/Sites/fb-sandbox/index.php on line 73

Is this because the folder structure doesn't follow PSR-0?