An enthusiastic user sent us a very nice email, amongst other things, asking for Composer to support VK.com. As it was such a nice email, I thought I’d have a look and see if we could add support for VK.com. There is an API, so that’s the first step. I started off trying to write to the API directly, but there were a few issues. So then I decided to use a VK wrapper. Then I got a strange error message:

Permission to perform this action is denied for non-standalone applications: you should request token using blank.html page

I couldn’t make sense of it. I tried changing various things, spent a few hours tinker with it. Finally, I figured it out. The key is on this page. Bottom line, the VK.com API only allows “desktop or standalone” applications to post content. In other words, because we’re a web based application, we’re forbidden from posting content.

There is a hack to get around this. The hack requires the user to copy and paste a code from a page which says “Пожалуйста, не копируйте данные из адресной строки для сторонних сайтов. Таким образом Вы можете потерять доступ к Вашему аккаунту.” I know, right! Google helpfully translated this as “Please do not copy the data from the address bar to third-party sites. So you may lose access to your account.”

So, by copying and pasting my token I was able to get the API working, but it’s explicitly forbidden. Unfortunately, for Composer, that means as far as I can see, there’s no way for us to support VK.com. Which is a shame, there are 100m users on VK.com.

Maybe when Composer is bigger, when we hit the outrageous Twitter 100k limit, then we can open channels with VK.com and perhaps negotiate access to their API to let users post content to their service more easily. If you know anyone at VK.com and can work this angle on our behalf, please do so. We’ve got all the code ready, all we need is for VK.com to actually let us post.

Leave a Reply

Your email address will not be published. Required fields are marked *