Created
August 25, 2014 14:13
-
-
Save bmarshall511/cd29e1cd6601810f51c7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$helper = new FacebookJavaScriptLoginHelper(); | |
try { | |
$session = $helper->getSession(); | |
} catch(FacebookRequestException $ex) { | |
// When Facebook returns an error | |
} catch(\Exception $ex) { | |
// When validation fails or other local issues | |
} | |
if ($session) { | |
// Logged in | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment