I'm beginner in cakephp and I'm trying to use the Facebook php sdk but i get conflict between cakephp auth login function and facebook sdk calling
$facebook = new Facebook(array(
'appId' => '123456789',
'secret' => 'abcdefghijklmnopqrstuvwxyz',
'cookie' => true
));
$fbuserid = $facebook->getUser();
if ($fbuserid) {
try {
$Uinfo = $facebook->api('/me');
} catch (FacebookApiException $e) {
error_log($e);
$fbuserid = null;
}
}
// some code here
$this->Auth->login($userdata);
this code works perfectly only if i removing facebook class calling
$userdatacome from. - oriAuthand just check$facebook->getUser()inAppController. - ori