I have problem! Im trying add Facebook login on my website but some stuff in my script is encoded. Problem is that in facebook login for detect user is logged in or not use this code:
if ($user)
{
/* Some code for logged in user
}
And on myy website I using this code:
if(User::isLoggedIn())
{
/* some code
}
My question is how can I change this to dont need change every file where is User::isLoggedIn()