I want to get banned users of the group. But it gives an error

{"error":{"error_code":15,"error_msg":"Access denied: no access to call this method","request_params":[{"key":"oauth","value":"1"},{"key":"method","value":"groups.getBanned"},{"key":"group_id","value":"ХХХХХХХ"},{"key":"v","value":"5.62"}]}} 

I have the rights of the admin group, when installing I ask access to the groups:

 "https://oauth.vk.com/authorize?client_id=".APP_ID."&display=page&redirect_uri=".REDIRECT_URI."&scope=groups&revoke=1&response_type=code&v=".V 

The appendix also states to ask access to groups.

Valid token. Site on lohlhlost.

account.getAppPermissions returns bitmask 262144 - Access to user groups.

    1 answer 1

    The groups.getBanned method can be called only with an indication of the token obtained during authorization in a standalone application using the Implicit Flow scheme. At the same time, during authorization, the redirect_uri parameter must necessarily be equal to the value https://oauth.vk.com/blank.html .

    I explained about authorization in detail in the answer to this question: vk openapi likes.add . There the author has exactly the same problem as yours, only with a different method.

    • maybe you can tell me how to use this token from php? Client API? - Hardc0re
    • @Hardc0re, I explained everything in detail in the question on the link provided. - neluzhin