I found that after a certain time, the Facebook session created using the Javascript SDK expires. I appreciate that a session cannot live forever, but is there a way for a user to enter my site indefinitely, unless, of course, they log out of Facebook?
I use the Javascript SDK in conjunction with the PHP SDK, and it is very difficult for me to find a solution for this.
If the session does not exist, PHP cannot detect the user, so my site believes that he logged out when the session actually just expired, and they just need to refresh the page to allow the Javascript SDK to restore the session. The reason I need to take this away so desperately is simply because the user will see a page that says they are not logged in when they really are. All they need to do is refresh the page to send a new session to the PHP SDK
Updating a page using javascript is not a solution here, as it happens too often, and it doesnโt look very good, loading half the page and then automatically refreshing
Anyway?
UPDATE
I found an article that refers to what is called 'offline_access', could this be the answer? Can I still post things using this?
source share