-
Notifications
You must be signed in to change notification settings - Fork 252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VERY IMPORTANT: How do you manage multi user? Possible terrible bug #99
Comments
I always pass the access token as an option instead of using FB.setAccessToken() globally.
|
Anyway I prefer to keep it clean, so I've moved to this one: https://github.com/amachang/facebook-node-sdk Which allows me to do:
And in my request I just do: Thanks anyway for your example, would be useful if I would use this lib.
This doesn't say much, but the author should have a big warning about this design choice. Novice users might make a huge mistake and mess everything, which is very very dangerous. I noticed because I hate singletons and every time I see them, something is smelly, in this case I've been right. |
I encountered with this issue today. I think documentation (README) can be updated to help this. There should be a eye-catching caution for multi user scenario. |
Feel free to bikeshed what text you think belongs in the README and submit a pull request to https://github.com/node-facebook/facebook-node-sdk |
The |
For example:
You should allow me to instance the FB with the access token for each user request.
I've tried to remove the access token when the request is finished. But errors can happen the same:
Problem remains.
You should instead do this:
Or I'm missing a really big point or something is very wrong.
The text was updated successfully, but these errors were encountered: