Change the namespace in some of the files and in Facebook.php added the variable  that was missing.