I
I
Ivan_092017-09-18 15:40:04
PHP
Ivan_09, 2017-09-18 15:40:04

How to post a post in the Odnoklassniki group via the API using php?

Hello!
I want to auto-post news from the site to the group.
Tell me how to do this using php, preferably with an example.
ps I looked at the documentation, it's not clear at all ..

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
Maxim Egorichev, 2017-09-18
@Ivan_09

Of course, there is a method for publishing topics in groups in the Odnoklassniki API.
Here it is: https : //apiok.ru/dev/methods/rest/mediatopic/media... .. Unfortunately, we don't have php examples in our documentation, but many good people have already done everything for us and before us. For example: shtyrlyaev.ru/all/skript-avtopostinga-v-gruppu-odn... https://dampi.ru/posting-v-gruppu-v-odnoklassnikah... The same examples briefly describe how to create an application and what rights do you need. This is also written in the documentation: https://apiok.ru/dev/app/create

A
alex stephen, 2017-09-18
@berezuev

Alas, there is no way through the API.
Odnoklassniki has an incredibly poor API (even after its update).
Here is a list of REST methods for working with groups, and there is no add function there ... You cannot work with groups at all through the Graph API.
Try to somehow imitate user actions. For example, by PhantomJS

I
Ivan_09, 2017-09-18
@Ivan_09

Thank you for your response!
I tried the first example(shtyrlyaev.ru/all/skript-avtopostinga-v-gruppu-odn...
Error 101
***
if (isset($step1['error_code'])) {
// Handling the error
exit();
}
***

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question