E
E
entermix2015-05-06 19:39:15
Kohana
entermix, 2015-05-06 19:39:15

Why doesn't Kohana autoload work?

I'm trying to connect the package https://packagist.org/packages/facebook/php-sdk-v4
I do everything according to this instruction: www.andrewault.net/2013/10/31/use-composer-with-ko...
Composer file .json

{
    "config": {
        "vendor-dir": "application/vendor"
    },

    "require": {
        "phpunit/phpunit": "3.7.24",
        "phing/phing": "dev-master",
        "facebook/php-sdk-v4": "4.1.*@dev"
    }
}

Everything is fine, in bootstrap.php before connecting the modules I put: But how to use this class now? I try to initialize it: I get an error: ErrorException [ Fatal Error ]: Class 'FacebookSession' not found
require APPPATH . 'vendor/autoload.php';
$session = new FacebookSession();

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
matperez, 2015-05-06
@entermix

There is no such class in the source code at all. The documentation appears to be outdated. See here https://github.com/facebook/facebook-php-sdk-v4/tr...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question