2017-01-19 46 views
2

我試圖實現VK API,所以感謝OAuth的代碼中,我得到一個令牌,只是添加此範圍「離線,音頻」,現在在做這個請求:訪問被拒絕:沒有訪問調用此方法

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" 
     } 
    ] 
    } 
} 

爲什麼,有一個範圍爲這個嗎?

感謝

回答

3

您的應用程序是不是獨立類型或不通過Implicit Flow方案獲得訪問令牌。

注意:你應該設置參數redirect_uri=https://oauth.vk.com/blank.html來獲得訪問令牌沒有限制。在其他方面,訪問令牌將僅限於調用僅適用於獨立應用程序的方法。