开发者

If you authorize the same iOS app on multiple devices, is the same oAuth token returned?

I have a scenario where a user will use the same Facebook account on multiple devices with our app. As part of the FB authorization, we ask for "extended data permissions" which makes teh FB oauth token long开发者_如何学C lived.

I'm trying to figure out whether our server needs to specifically support multiple devices or whether Facebook will return the same oAuth token to all the devices for the same FB account.

If it does, then it means that support 1 or N devices should be the same for me. If not, then it means I have to track N oauth tokens on our server and differentiate between device IDs (UDIDs).


Facebook generates one token per app per user, if you request offline_access when you authenticate your app (see https://developers.facebook.com/docs/reference/api/permissions/). So, it doesn't matter on which device the user logs in, Facebook will give you the same token every time.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜