I ran into the same problem. I’m using the latest version of the plug-in + PRO.
Have the same problem. Plugin does not work with VK.com
I figured out what the problem is: now you need to specify the version for queries (https://vk.com/dev/version_update), temporarily fixed manually in the file “vk.api.php”, I wait for the update of the plug-in with the solution of the problem.
I figured out what the problem is: now you need to specify the version for queries (https://vk.com/dev/version_update), temporarily fixed manually in the file “vk.api.php”, I wait for the update of the plug-in with the solution of the problem.
Hello! Can you please tell me how to do this?
Yes, I will write below what helped me, but this is a temporary solution, until the plug-in update is released.
In the file “/wp-content/plugins/social-networks-auto-poster-facebook-twitter-g/inc-cl/vk.api.php” you need to add the parameter “v” in url requests to api vk:
15 line was:
$postUrl = 'https://api.vk.com/method/photos.getWallUploadServer?gid='.(str_replace('-','',$options['pgIntID'])).'&access_token='.$options['appAuthToken'];
It became:
$postUrl = 'https://api.vk.com/method/photos.getWallUploadServer?gid='.(str_replace('-','',$options['pgIntID'])).'&access_token='.$options['appAuthToken'].'&v=5';
35 line was:
$postUrl = 'https://api.vk.com/method/photos.saveWallPhoto?server='.$uploadResultObj->server.'&photo='.$uploadResultObj->photo.'&hash='.$uploadResultObj->hash.'&gid='.(str_replace('-','',$options['pgIntID'])).'&access_token='.$options['appAuthToken'];
It became:
$postUrl = 'https://api.vk.com/method/photos.saveWallPhoto?server='.$uploadResultObj->server.'&photo='.$uploadResultObj->photo.'&hash='.$uploadResultObj->hash.'&gid='.(str_replace('-','',$options['pgIntID'])).'&access_token='.$options['appAuthToken'].'&v=5';
56 line was:
$postUrl = 'https://api.vk.com/method/wall.post';
It became:
$postUrl = 'https://api.vk.com/method/wall.post?v=5';
Kodintsev Thanks, it really works!
Also found this way out. After correcting the code, the messages are published but it does not seem to be without thumbnail.
Also found this way out. After correcting the code, the messages are published but it does not seem to be without thumbnail.
We are waiting for the official update of the plug-in with the solution of the problem.
We are waiting for the official update of the plug-in with the solution of the problem.
I noticed. That the pictures are not attached to the posts. Maybe you need to change something else?
I noticed. That the pictures are not attached to the posts. Maybe you need to change something else?
At me the image was attached.
I’m not a developer of this plugin.) I just found a temporary solution to the problem, I’m waiting for the official update of the plug-in.
At me the image was attached.
I’m not a developer of this plugin.) I just found a temporary solution to the problem, I’m waiting for the official update of the plug-in.
I get this error message when trying to publish an image. Can you know what you need to change in the code?
-=IMG ERROR=- Could not get image ( https://direct.gtln.us/img/nxs/df/dfImg7.jpg ), will post without it – nxs_Error Object ( [errors] => Array ( [http_request_failed] => Array ( [0] => Peer’s Certificate has expired. ) ) )
Your post has been successfully sent to VK.Com
I’m really looking forward to the update, but I’m afraid that it will take a few more days to wait.
-
This reply was modified 7 years ago by
AppleStage.
Judging by the description of the error, the problem is in some of the certificates. What kind of certificate is it and how does it work in the plugin I do not know.
I recommend that you wait for the plug-in update.
Please update to the latest version 4.1.6. This problem has been fixed there.
@applestage: The SSL certificate for the website (direct.gtln.us) you are trying to link an image from has expired, therefore any attempt to download an image will fail. This has nothing to do with the SNAP plugin.
@Kodintsev: I can confirm your fix works only for text-only posts. When the image post selection is used, images get lost during the autopost process and all posts arrive on VK.com as text-only posts, although no error is displayed. This issue really needs to be addressed by the devs.