How to handle Facebook's deprecation of offline_access when you use token both in both iOS app and a server

前端 未结 2 1632
旧巷少年郎
旧巷少年郎 2021-02-02 02:04

Facebook\'s deprecation of the offline_access permission is coming May 2012 and the documentation isn\'t giving us enough information on how to handle it.

W

2条回答
  •  忘掉有多难
    2021-02-02 02:16

    Great answer, one important addition : the default token lasts between 1 and 2 hours. You get the remaining of the hour during which the user signs up, plus 1 full hour. For example if a user signs up at 3:45pm, the access token will expire at 5pm. To be safe developers should assume it only lasts 1hour.

提交回复
热议问题