Type Function

Return value none

See also vk.*


Must be callled before you can use other functions of the plugin.


vk.init(appId, [permissions])

appId required

String. VK application ID that you get on https://vk.com/dev.

permissions optional

Array. Array of strings. Specify VK permissions that your application needs.

Available permissions

'notify', 'friends', 'photos', 'audio', 'video', 'docs', 'notes', 'pages', 'status', 'wall', 'groups', 'messages', 'notifications', 'stats', 'ads', 'offline', 'direct', 'email'.

'email' permission is only granted to special applications that have an agreement with VK company.