I have used PHP SDK-4 for Facebook login in CakePHP 3 (beta version) which works fine.
Now, I'm in need to fetch user data based on FB login and authenticate users. Am trying with Cake's Auth component. Initially, while trying to Auth users,
$this->Auth->setUser($user)
Got
Error: Session was already startedas we require session_start() for Facebook login.
1- Tried with enter link description here, and sessions [session_write_close()] etc..still it did not work.
Could I get some shot on best way to authenticate users with Facebook login in site?
session_start()started the session, if it was CakePHP that started the session, thenSession::start()wouldn't reach the point where this error message is thrown. - ndm