Comments (2)
Yes, the session is still valid since it's validated by the facebook session timeout in the cookie. Since a logout at facebook isn't capable to remove all cookies for all partner sites, the only way is to call isValid when necessary.
If you want to automaticly refresh as soon as the user logged out of facebook, you may use this on clientside:
FB.Event.subscribe('auth.sessionChange', function(response) {
document.location = document.location.href;
});
This will also remove the cookie.
Another workaround may be to check the isValid only after a specific time.
Regards,
Jan
from node-facebook-client.
Yeah, I forgot about FB.Event.subscribe
, thanks!
from node-facebook-client.
Related Issues (20)
- Not able to parse facebook cookie from request.headers HOT 7
- restCall fails on fql.multiquery
- cookie expiration check reversed HOT 1
- Facebook stops responding after a while HOT 6
- Add simple storage for mapping between oauth-code and access_tokens
- FacebookClient.getSessionByFbsrCookie fails in node 0.4.7
- Possible to do FQL queries using this library? HOT 2
- Configurable timeout? HOT 7
- Large amount of timeouts over time HOT 1
- Add method to FacebookClient to parse signed_request
- image upload support
- Can't find a way to retrieve access token HOT 1
- publish v1.6.1 to npm HOT 2
- Improve error handling
- html returned sometimes which causes stacktrace
- getSessionByRequestHeaders(request.headers) HOT 13
- Weird error running the example HOT 3
- Avoid double-checking returned values HOT 1
- Facebook Connection problem (>100 concurrent users) HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-facebook-client.