Instagram 访问令牌即将到期
Instagram Access Token Expiring
我已经集成了 Instagram API 以获取授权应用程序的用户数据。我发现有时令牌会在一段时间后变得无效。但没有具体的时间表。我有大约 1200 名用户已授权,其中 470 名用户拥有无效令牌。
我还检查了 Instagram 文档 - https://www.instagram.com/developer/authentication/ 它说访问令牌随时都可能过期。我相信用户不会撤销对我的应用程序的访问权限。所以是 Instagram 使令牌过期。我知道我们需要检查令牌并要求用户在发生这种情况时重新连接,但不确定这是否是问题所在。
有没有人遇到类似的问题,除了要求用户重新连接之外还有其他方法吗?
谢谢
在您链接的那个页面上有一个突出显示的框,上面写着 重要
your app should handle the case that either the user revokes access,
or Instagram expires the token after some period of time.
所以用户要么撤销访问权限,要么令牌过期。
"I understand that we need to check the tokens and ask user to reconnect if that happens but just not sure whether that is the issue."
- 你指的是什么问题?
不,除了让用户重新连接外,没有其他方法可以将用户重新连接到 instagram。
我已经集成了 Instagram API 以获取授权应用程序的用户数据。我发现有时令牌会在一段时间后变得无效。但没有具体的时间表。我有大约 1200 名用户已授权,其中 470 名用户拥有无效令牌。
我还检查了 Instagram 文档 - https://www.instagram.com/developer/authentication/ 它说访问令牌随时都可能过期。我相信用户不会撤销对我的应用程序的访问权限。所以是 Instagram 使令牌过期。我知道我们需要检查令牌并要求用户在发生这种情况时重新连接,但不确定这是否是问题所在。
有没有人遇到类似的问题,除了要求用户重新连接之外还有其他方法吗?
谢谢
在您链接的那个页面上有一个突出显示的框,上面写着 重要
your app should handle the case that either the user revokes access, or Instagram expires the token after some period of time.
所以用户要么撤销访问权限,要么令牌过期。
"I understand that we need to check the tokens and ask user to reconnect if that happens but just not sure whether that is the issue."
- 你指的是什么问题?
不,除了让用户重新连接外,没有其他方法可以将用户重新连接到 instagram。