How to make user stay logged in with Facebook login in Javascript?

After user logged in on page with Facebook login (easy) it logged out when leave page. How to make user stay within session timeout (js facebook easy/sdk)?

Hello!
We’re sorry, our docs for this part looks out of date.
Please, consider the following signatures:
loginWithFacebook: function(facebookFieldsMapping, permissions, async, stayLoggedIn)loginWithFacebookSdk: function(fieldsMapping, stayLoggedIn, async)

You should pass parameter “stayLoggedIn” as “true”.
We shall update our docs soon.
Alex

Thanks for reply, found that function yesterday in sources on github, works well.