By Petrukhin V on Friday, 23 March 2012
Posted in General
Replies 14
Likes 0
Views 3.9K
Votes 0
I did vk.com integration by php. I can post messages automaticly
Mark, can you help me to integrate this vode into easyblog? Just to me.
I think use the same rights and the same access as facebook.com posting rights in easyblog.
Or say me if you won't. I'll try to do it without assistance.
Or say me how can I parse easyblog posting text?
The posting in vk.com organized via http request with access_token key.
Hello, Mark!
Can you halp me to add vk.com autoposting? If you understand how this man has solved the problem.
Please))
·
Saturday, 18 July 2015 23:09
·
0 Likes
·
0 Votes
·
0 Comments
·
I have already tried to experiment with this but VK.com doesn't allow that to happen
·
Saturday, 18 July 2015 23:17
·
0 Likes
·
0 Votes
·
0 Comments
·
ok. Thank's for your answer!
·
Saturday, 18 July 2015 23:26
·
0 Likes
·
0 Votes
·
0 Comments
·
Yeah, but if there's any possible way, we'll definitely add them. This applies to Google+ too!
·
Saturday, 18 July 2015 23:32
·
0 Likes
·
0 Votes
·
0 Comments
·
I fine same materials about autoposting item for vk.com ..
The token-key is taken no automatic in vk.com

for the generate token need to open link https://oauth.vk.com/authorize?client_id=12343547&scope=groups,wall,offline,photos&redirect_uri=https://oauth.vk.com/blank.html&display=page&v=5.21&response_type=token

where the parameter client_id transfer identifier created earlier application.
and parameter scope it means set of rules that you are awarded with the application. More info about permissions http://vk.com/dev/permissions


After clicking on the link to confirm the transfer of the application and copy the access token directly from Urla, despite the warning contact Please do not copy data from the address bar to third-party sites. So you can lose access to your account. Thus generated token will be enough to work with a group for an unlimited time.

We write some code

Solving this problem, I tried to find a ready-made library, found here that https://github.com/bocharsky-bw/vkontakte-php-sdk , in the end turned out a fork, which is used in the example below. For experts on the quality of the code: the library is designed solely for demonstration purposes, it does not have extensive functional tests, good documentation, optimize performance, cross-platform (requires php 5.4), and others - all of this is left to the reader to implement tireless.
So the post text from the image into the community and tags VK:

// git clone https://github.com/Vastly/vkontakte-php-sdk
require_once('../src/Vkontakte.php');

$accessToken = 'your access token';
$vkAPI = new \BW\Vkontakte(['access_token' => $accessToken]);
$publicID = 70941690;

if ($vkAPI->postToPublic($publicID, "Привет Хабр!", '/tmp/habr.png', ['вконтакте api', 'автопостинг', 'первые шаги'])) {

echo "Ура! Всё работает, пост добавлен\n";

} else {

echo "Фейл, пост не добавлен(( ищите ошибку\n";
}
·
Saturday, 18 July 2015 23:45
·
0 Likes
·
0 Votes
·
0 Comments
·
First of all, you need to create a Standalone-application. You must have this account with VK linked phone number. In my experience, if the account is not linked phone number, the contact begins to rapidly respond to the API error asking you to enter a captcha)) that is needed is more and CAPTCHA-operator plant next to the script.

important see "Need linked phone number for your account"
·
Saturday, 18 July 2015 23:47
·
0 Likes
·
0 Votes
·
0 Comments
·
Nope, this doesn't work. The last time I tested it, the post will not appear on the stream. It will only appear on some sort of activity logs and you will then need to manually move it or something like that.
·
Saturday, 18 July 2015 23:49
·
0 Likes
·
0 Votes
·
0 Comments
·
if it would be useful information for you in your opinion please report it that I outlined for myself that soon the issue will be resolved autoposting.
·
Saturday, 18 July 2015 23:50
·
0 Likes
·
0 Votes
·
0 Comments
·
the original material is here http://habrahabr.ru/post/226585/
·
Saturday, 18 July 2015 23:51
·
0 Likes
·
0 Votes
·
0 Comments
·
If they have updated their API to allow this to happen, we'll only be checking it in 5.1. Right now, our highest priority is to get everyone to be comfortable with 5.0
·
Saturday, 18 July 2015 23:53
·
0 Likes
·
0 Votes
·
0 Comments
·
Ok.(
·
Sunday, 19 July 2015 00:00
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for understanding
·
Sunday, 19 July 2015 00:29
·
0 Likes
·
0 Votes
·
0 Comments
·
? easyblog Social Integrations VKontakte In order for the like button to work for VK, you will need to copy the API ID from VK. ?

Any news?
·
Saturday, 29 August 2015 04:42
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Erdem,

I am really sorry for the delay of this reply, we must have missed your post here earlier. Not really sure if I understand you here, but at the point of testing the VK buttons, it actually requires you to create an app on VK.com and the App id is required.
·
Thursday, 03 September 2015 02:14
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post