Skip to content

Instantly share code, notes, and snippets.

@nsanden
Created June 11, 2014 19:40
Show Gist options
  • Select an option

  • Save nsanden/2103b956da952eaccc47 to your computer and use it in GitHub Desktop.

Select an option

Save nsanden/2103b956da952eaccc47 to your computer and use it in GitHub Desktop.
php facebook
try {
if ( !$session->validate() ) {
$session = null;
}
} catch ( Exception $e ) {
// catch any exceptions
$session = null;
echo $e->getMessage();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment