Closed dant89 closed 4 years ago
I'm trying to check whether a user is logged in via Facebook, this works but if they're not logged in then an exception is thrown:
if($fb->getStorage()->retrieveAccessToken('Facebook')->getAccessToken()){
Something like this?
if($fb->getStorage()->hasAccessToken('Facebook')){
You should get Facebook data, save it in the database and then login the user according to that data that you have stored
I'm trying to check whether a user is logged in via Facebook, this works but if they're not logged in then an exception is thrown:
Something like this?