PHP Fatal error: Class ‘Facebook\FacebookSession’ not found in

I got this error:

PHP Fatal error:  Class 'FacebookFacebookSession' not found in /home/rafael/NetBeansProjects/EnqueteFacebook/index.php on line 27

And this is the Code:

$base = $_SERVER['DOCUMENT_ROOT'];    
    require ($base.'/EnqueteFacebook/vendor/autoload.php');
    define('FACEBOOK_SDK_V4_SRC_DIR', $base.'/EnqueteFacebook/vendor/facebook/php-sdk-v4/src/Facebook/');
    use FacebookFacebookSession;

And it’s exectly as the facebook’s Getting started says


Source: facebook

Leave a Reply