公众号网页授权access_token无效?
公众号进行网页授权(scope为 snsapi_userinfo),后台通过code已经获取到如下格式的数据
{
"access_token":"ACCESS_TOKEN",
"expires_in":7200,
"refresh_token":"REFRESH_TOKEN",
"openid":"OPENID",
"scope":"SCOPE" }
,但进一步拿数据中的网页授权access_token和openid请求用户信息(调用如下接口)
http:GET(请使用https协议) https://api.weixin.qq.com/sns/userinfo?access_token=ACCESS_TOKEN&openid=OPENID&lang=zh_CN
,一直报错 invalid credential, access_token is invalid or not latest, hints: [ req_id: UhfFEi4FE-MAD1.A ]。
拿的是刚返回的网页授权access_token,为什么会无效呢?