

If any of them becomes invalid or is not updated automatically, you may receive the error message. Your smartphone keeps track of all the access tokens related to Messenger.
#FACEBOOK SESSION EXPIRED IPHONE 2016 ANDROID#
This is no more than a mere bug in your android device. Normal users may experience this error message when trying to log into the messenger or while switching between different accounts. Solution 1: Refreshing Messenger’s Local Data (for error in messenger) If you are a complete beginner in the development environment, we recommend reading some detailed coding material to gain insight into access tokens. In reference to the solution listed below for developers, we assume that you know the basics of the API call you are making using access tokens.
#FACEBOOK SESSION EXPIRED IPHONE 2016 PASSWORD#

If last user interaction time > greater than 5mins Then send ajax request to keep session alive.The message “ Error Validating Access Token” occurs while using Facebook/Messenger primarily by two groups of users one are regular users accessing messenger and other are developers who are enabling Facebook login using the API. To avoid numerous ajax calls to the server every time a user moves their mouse you can set the JavaScript to only send an ajax request once every 5 minutes or so. When a user event is fired an ajax request is sent to keep the session alive. For our web app I have developed a JavaScript engine which captures client side user interaction's such as, key down, mouse move, mouse clicks, scrolling etc. If you have to have sessions which expire, focus your efforts on recording user activity better so that sessions do not expire for active users.ĮDIT: E.g. if the user is using the site they should never see it AND if the user is not using the site they will never see it. Therefore warning the user of impending session expiry becomes irrelevant i.e.

Logically, if the user is still using the site then their session should not expire. Well, Expiring a session is used to log the user out when they are not using the site/application to secure the data. Ok, so when we have to expire a session should we warn the user and give them the option to extend? That said in some situations such as bank sites we still need to expire sessions as we don't want to leave the door open for anyone to steal our money when we go to the loo or something. In an ideal world the session would never expire, like Facebook, Hotmail etc. The first thing to understand is that users don't care about sessions, the session is something you as a developer are forcing onto the user to meet your security/application needs.
