I'm having problem integrating Facebook PHP SDK in CakePHP. I've googled a lot and I'm only finding guides from some years ago, referring to the class Facebook(.php). This class appears to not exist anymore.
I want to simply use Facebook login together with CakePHP Auth. My head is all blurry atm :S
Can someone help me set everything up?
For instance, I've tried stuff like:
App::import('Vendor", "facebook-php-sdk-v4-4.0-dev/src/Facebook');
FacebookSession::setDefaultApplication('ID#', 'SECRET#');
The above didn't work.
It was a while ago I used cakephp and I'm pretty rusty atm. Please help me out anyone! :)
I finally loaded the Facebook SDK into my AppController
Updated problem:
The problem that I had with the Facebook Plugin from nick as well is that when I click the facebook generated Login-link, the screen becomes blank :S facebook.com/v2.0/dialog/oauth?client_id=... $helper = new FacebookRedirectLoginHelper("google.com"); Shouldn't that do something when I click the link from $helper->getLoginUrl() ?