Check the login status using OAuth 2.0 handled by the PHP SDK: Check the login status
Login using OAuth 2.0 handled by the PHP SDK: Login with Facebook