I\'m working with CakePHP 3(beta 2) version recently launched. I need to integrate Facebook Login using PHP SDKs and I\'m not clear with importing vendor files in thi
the answer provided by Ayman B. does not look like doing the job as expected in the question after i tried it myself , for the following reasons :
To correct the answer you have to do some several steps as follows :
1 - Define in bootstrap.php a new cakephp constant like so : define('VENDOR',ROOT . DS . 'vendor' .DS); as VENDOR constante is removed in cakephp 3.x you can define it yourself 2 - After that , you have to specify the vendor name , the package name and the class name in a vendor constante like : define('_',; and then you can do $facebookApi = new \\();
this is will work for you as expected in the question
If you have issues try to get back to me , i will show you an example of use as described here ...