Crosspost from livestreet cms to vk.com user or group wall
Check if web server where installed livestreet cms can access to https://api.vk.com:
# cmd.exe or bash
ping api.vk.com
telnet api.vk.com:443
And function get_file_contents
works with http, https uris:
# get_contens.php
<?php
eco file_get_contents('http://ya.ru');
Create Standalone aka Desktop application http://vk.com/editapp?act=create you will need only appId
- install vkfeed
- put in url your appId https://api.vk.com/oauth/authorize?client_id={$appId}&scope=wall,offline&redirect_uri=http%3A//oauth.vk.com/blank.html&response_type=token
- go to edited url
- allow access to the wall
- when redirected to oauth.vk.com/blank.html#access_token=blabalb... copy access_token from url and put it to {$livestreet_dir}/tmp/vkfeed_token.txt file
- Create Your post and it will apear on the wall.
Notice: Use this guide if you use sources from github livestreet-vkfeed
repository
-
copy vkfeed folder to {$livestreet_dir}/plugins/
-
edit vkfeed/config/config.php file
#vkfeed/cofig/config.php $config['appId'] = 'YOURAPPID'; $config['wall'] = '-GROUPID';
-
login on you livestreet site, go to admin and activate vkfeed plugin
-
go to vkfeed settings "http://[yoursite]/vkfeed/", then click link "Авторизоваться"
-
allow access to the wall
-
when redirected to oauth.vk.com/blank.html#access_token=blabalb... copy access_token from url and put it to {$livestreet_dir}/tmp/vkfeed_token.txt file
- Create Your post and it will apear on the wall.