vk

VK API, access denied for post on wall of a community, fail WALL Permissions

断了今生、忘了曾经 提交于 2019-12-24 02:38:04
问题 I build API for post on my community of VK. But I check my permission for my app, and I have all permissions, but not load WALL permissions. In the scope for OAuth, I put all scopes and not work the WALL. I check the "Api.console" and they have "Access to Wall - The application has access to your wall", but in my app not appear. This is the response: {"error":{"error_code":15,"error_msg":"Access denied: no access to call this method","request_params":[{"key":"oauth","value":"1"},{"key":

Loading Profile Images on VK.com in ActionScript

Deadly 提交于 2019-12-13 04:22:16
问题 I have an iframe application in vk.com. I can use their API everything looks fine but when I want to load profile images I get Security Sandbox Error. When I print the result and errors I get This: (I am using Greensock ImageLoader) MYURL : 'MY Image URL on cs408919 subdomain of vk' Loading CrossDomain on cs408919 ScriptAccessDenied : Error #2048 SecurityError : Error #2048 Error : Error #2048 ScriptAccessDenied : Error #2123 Security SandBox Violation, No Policy Files Granted Access It seems

How to get an access token from vKontakte (VK) via OAuth2?

六眼飞鱼酱① 提交于 2019-12-12 12:25:55
问题 I'm trying to get an access token from vKontakte (russian social network) via their OAuth2 API. This is how I make the call: https://oauth.vk.com/authorize?client_id=12345&scope=wall,offline&redirect_uri=https://www.example.com/oauth/vk.php&display=page&v=5.24&response_type=token I'm receiving an access token but if I try to post a message with it, I'm receiving this error: //error: Permission to perform this action is denied for non-standalone applications: you should request token using

How to get email address from vk.api?

两盒软妹~` 提交于 2019-12-12 11:15:01
问题 Im trying to get email address. After success login i have firstname, lastname, all except email. please help. VK.Auth.login(function (response) { if (response.session) { } else { } }, 4194304); 回答1: There is no way to do that. Vk is specific social network. I have the same problem. 回答2: When you get Access Token, VK also gives you Email and User ID, but you need specific permission for that - "email". 回答3: vk.com now has that functionality. Try checking out this documentation page: https:/

Writing countries to a list from VK API

有些话、适合烂在心里 提交于 2019-12-12 02:08:52
问题 I need to write the titles of the countries from VK API to a list from the following link. I have written some code: public class GettingCountry { public async Task<string> FetchAsync(string url) { string jsonString; using (var httpClient = new System.Net.Http.HttpClient()) { var stream = await httpClient.GetStreamAsync(url); StreamReader reader = new StreamReader(stream); jsonString = reader.ReadToEnd(); } var readJson = JObject.Parse(jsonString); string countryName = readJson["response"][

Send file using POST from a Python

♀尐吖头ヾ 提交于 2019-12-11 13:43:50
问题 I have the url, where I need to send a video file. For this reason i wrote this code: import requests upload_url = 'https://cs506200.vk.me/upload_video_new.php?act=add_video&mid=21844505&oid=21844505&vid=171170813&fid=0&tag=93bb46ee&hash=e238f469a32fe7eee85a&swfupload=1&api=1' file_ = {'file': ('video.mp4', open('video.mp4', 'rb'))} r = requests.post(upload_url, files=file_) print (r.text) I get an error: {"error":"invalid file"} But in this case: <!DOCTYPE HTML> <html> <head> <meta charset=

authorize chrome app as standalone in vkontakte api

坚强是说给别人听的谎言 提交于 2019-12-11 11:44:51
问题 I'm trying to use vk.messages api in chrome app like this: app.login = function () { var link = 'https://oauth.vk.com/authorize?' + 'client_id=4837072' + '&scope=friends,docs,status,messages,notifications,' + '&redirect_uri=' + 'https://oauth.vk.com/blank.html' + '&display=popup' + '&v=API_VERSION' + '&response_type=token'; var width = 655; var height = 539; var left = (screen.width / 2) - (width / 2); var top = (screen.height / 2) - (height / 2); chrome.identity.launchWebAuthFlow({ 'url':

Parse universities from VK API

那年仲夏 提交于 2019-12-11 07:29:43
问题 I need to write to List<string> the list of universities. I already had written countries and cities to lists. But in universities data is represented a little bit different. There is {"response":[201, and I do not have any idea how to handle with it. I successfully got countries from here. And from here I need to write universities titles to a List<string> . This is code how did I got countries. The analogical code I used in cities. While trying to execute this line var universityRepository

Trouble with authentication in vk.com with zend_oauth

女生的网名这么多〃 提交于 2019-12-11 03:14:24
问题 Trouble with authentication in vk.com with zend_oauth Message: Error in HTTP request: Unable to enable crypto on TCP connection oauth.vk.com: make sure the "sslcafile" or "sslcapath" option are properly set for the environment. Help me please 回答1: You need to use curl as adapter and turn off ssl certificate checks: $adapter = new \Zend\Http\Client\Adapter\Curl(); $adapter = $adapter->setCurlOption(CURLOPT_SSL_VERIFYHOST, false); $adapter = $adapter->setCurlOption(CURLOPT_SSL_VERIFYPEER, false

Error in posting status in vk

自作多情 提交于 2019-12-08 10:40:05
问题 I am trying to integrate vk in android application . For this I am trying to follow the following instructions in this link . Vk integration . I have successfully logged in vk with this code . But after trying to post a status in my wall , I have got the following error . 02-20 14:08:54.779: W/System.err(2945): java.lang.NullPointerException 02-20 14:08:54.789: W/System.err(2945): at com.perm.kate.api.Api.createWallPost(Api.java:1200) 02-20 14:08:54.789: W/System.err(2945): at com.perm.kate