我正在尝试实现VK,所以感谢OAuth代码,我得到了一个令牌,然后添加了这个作用域offline,audio,现在执行以下请求:
https://api.vk.com/method/account.getInfo?access_token=XXXXX&v=5.62
然后这样做作为回报:
{
"error": {
"error_code": 15,
"error_msg": "Access denied: no access to call this method",
"request_params": [
{
"key": "oauth",
"value": "1"
},
{
"key": "method",
"value": "account.getInfo"
},
{
"key": "v",
"value": "5.62"
}
]
}
}为什么,这也是有范围的?
发布于 2017-01-20 06:33:00
您的应用程序不是独立类型,或者您收到的访问令牌不是通过Implicit Flow方案。
注意:您需要设置参数redirect_uri=https://oauth.vk.com/blank.html来获取没有限制的access token。在其他方面,访问令牌将被限制为仅对独立应用程序可用的调用方法。
发布于 2018-11-07 03:17:11
您还需要将scope=messages放在授权方法中
"&display=page&redirect_uri=https://oauth.vk.com/blank.html&scope=messages&response_type=token&v=5.87&revoke=1");(“https://oauth.vk.com/authorize?client_id=”+GetToken.Navigate+https://oauth.vk.com/authorize?client_id=+ VkAPI.__APPID
https://stackoverflow.com/questions/41746491
复制相似问题