Instagram 图 API 访问令牌
Instagram Graph API Access Token
所以我已经设置并配置了我的 Instagram 图表 API 并在我的网站上加载了媒体,但我想与社区核实收到的访问令牌是否过期或永久有效。 Facebook 支持很糟糕,我无法得到他们的回复。
以下详细信息来自访问令牌调试器:
上述访问令牌是否需要每 3 个月更新一次,还是永远不会过期?我们有两个通过 Facebook 登录的经过身份验证的用户,他们可以访问 Instagram 帐户上的媒体权限。
访问令牌是否在用户活跃时每天刷新?好难理解这个过程。
非常感谢!
根据:https://developers.facebook.com/docs/facebook-login/access-tokens/refreshing - 如果您已将短期令牌换成长期令牌(您似乎这样做了),那么如果用户在一段时间内访问您的网站,它们就不会过期60天期限。
When you use the iOS, Android, or JavaScript SDK, the SDK will automatically refresh tokens if the person has used your app within the last 90 days. Native mobile apps using Facebook's SDKs get long-lived User access tokens, good for about 60 days. These tokens are refreshed once per day, when the person using your app makes a request to Facebook's servers. If no requests are made, the token will expire after about 60 days and the person will have to go through the login flow again to get a new token.
据我所知,这也适用于 Instagram Graph API 代币。
所以我已经设置并配置了我的 Instagram 图表 API 并在我的网站上加载了媒体,但我想与社区核实收到的访问令牌是否过期或永久有效。 Facebook 支持很糟糕,我无法得到他们的回复。
以下详细信息来自访问令牌调试器:
上述访问令牌是否需要每 3 个月更新一次,还是永远不会过期?我们有两个通过 Facebook 登录的经过身份验证的用户,他们可以访问 Instagram 帐户上的媒体权限。
访问令牌是否在用户活跃时每天刷新?好难理解这个过程。
非常感谢!
根据:https://developers.facebook.com/docs/facebook-login/access-tokens/refreshing - 如果您已将短期令牌换成长期令牌(您似乎这样做了),那么如果用户在一段时间内访问您的网站,它们就不会过期60天期限。
When you use the iOS, Android, or JavaScript SDK, the SDK will automatically refresh tokens if the person has used your app within the last 90 days. Native mobile apps using Facebook's SDKs get long-lived User access tokens, good for about 60 days. These tokens are refreshed once per day, when the person using your app makes a request to Facebook's servers. If no requests are made, the token will expire after about 60 days and the person will have to go through the login flow again to get a new token.
据我所知,这也适用于 Instagram Graph API 代币。