Danny620 Posted May 3, 2012 Share Posted May 3, 2012 i keep getting this error Fatal error: Uncaught OAuthException: Error invalidating access token: Session does not match current stored session. This may be because the user changed the password since the time the session was created or Facebook has changed the session for security reasons. thrown in /home/sites/socialnewsoffice.com/public_html/sm-login/social-media-connect/facebook/base_facebook.php on line 1050 how can i catch and display this warning to the user? Quote Link to comment https://forums.phpfreaks.com/topic/262042-how-do-i-catch-exceptions/ Share on other sites More sharing options...
premiso Posted May 3, 2012 Share Posted May 3, 2012 By using the Try/Catch block: http://www.php.net/manual/en/language.exceptions.php Quote Link to comment https://forums.phpfreaks.com/topic/262042-how-do-i-catch-exceptions/#findComment-1342847 Share on other sites More sharing options...
xyph Posted May 3, 2012 Share Posted May 3, 2012 http://php.net/manual/en/language.exceptions.php http://php.net/manual/en/class.oauthexception.php try { // your code here } catch( OAuthException $e ) { echo $e->getMessage(); } Quote Link to comment https://forums.phpfreaks.com/topic/262042-how-do-i-catch-exceptions/#findComment-1342850 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.