When im tryimg to get login url Facebook::getLoginUrl(); i get this error "Session not active, could not store state." I've fixed that when i add session_start() on top of the controller but when im trying to get the user profile Facebook::getProfile() i got this error:
Argument 1 passed to Facebook\FacebookRequest::__construct() must be an instance of Facebook\FacebookSession, null given
When im tryimg to get login url Facebook::getLoginUrl(); i get this error "Session not active, could not store state." I've fixed that when i add session_start() on top of the controller but when im trying to get the user profile Facebook::getProfile() i got this error:
Argument 1 passed to Facebook\FacebookRequest::__construct() must be an instance of Facebook\FacebookSession, null given