Sharing Facebook access tokens between different devices of same user

笑着哭i 提交于 2019-12-11 03:45:19

问题


Users can log in to our app from different devices. We want to transfer users' access tokens to all devices they log in from for them not to go through Facebook login steps again in each device they use.

In one of Facebook's developer documentation pages (https://developers.facebook.com/docs/facebook-login/access-tokens/portability), it's said that;

Access tokens are portable. This means that once you obtain a token, you can generally use it from any machine - server, client, or otherwise.

and this document also details how to set a current access token to be used by the Facebook SDK.

But in another page (https://developers.facebook.com/docs/facebook-login/access-tokens/expiration-and-extension), it's said that

You should, in general, not use the same long-lived tokens on more than one web client (i.e. if the person logs in from more than one computer.) Instead you should use the long-lived tokens on your server to generate a code and then use that to get a long-lived token on the client.

So, can we share the access token acquired on one of a user's devices to other devices of this same user or not?

来源:https://stackoverflow.com/questions/47387276/sharing-facebook-access-tokens-between-different-devices-of-same-user

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!