Mobile Chatbot Development for Odnoklassniki

NOVASOLUTIONS.TECHNOLOGY is engaged in the development, support and maintenance of iOS, Android, PWA mobile applications. We have extensive experience and expertise in publishing mobile applications in popular markets like Google Play, App Store, Amazon, AppGallery and others.
Development and support of all types of mobile applications:
Information and entertainment mobile applications
News apps, games, reference guides, online catalogs, weather apps, fitness and health apps, travel apps, educational apps, social networks and messengers, quizzes, blogs and podcasts, forums, aggregators
E-commerce mobile applications
Online stores, B2B apps, marketplaces, online exchanges, cashback services, exchanges, dropshipping platforms, loyalty programs, food and goods delivery, payment systems.
Business process management mobile applications
CRM systems, ERP systems, project management, sales team tools, financial management, production management, logistics and delivery management, HR management, data monitoring systems
Electronic services mobile applications
Classified ads platforms, online schools, online cinemas, electronic service platforms, cashback platforms, video hosting, thematic portals, online booking and scheduling platforms, online trading platforms

These are just some of the types of mobile applications we work with, and each of them may have its own specific features and functionality, tailored to the specific needs and goals of the client.

Showing 1 of 1 servicesAll 1735 services
Mobile Chatbot Development for Odnoklassniki
Simple
from 4 hours to 2 business days
FAQ
Our competencies:
Development stages
Latest works
  • image_mobile-applications_feedme_467_0.webp
    Development of a mobile application for FEEDME
    756
  • image_mobile-applications_xoomer_471_0.webp
    Development of a mobile application for XOOMER
    624
  • image_mobile-applications_rhl_428_0.webp
    Development of a mobile application for RHL
    1052
  • image_mobile-applications_zippy_411_0.webp
    Development of a mobile application for ZIPPY
    947
  • image_mobile-applications_affhome_429_0.webp
    Development of a mobile application for Affhome
    862
  • image_mobile-applications_flavors_409_0.webp
    Development of a mobile application for the FLAVORS company
    445

Odnoklassniki Chatbot Mobile Development

OK API returns 403 Forbidden on the first request if you miss a subtlety with signature format. Most projects stumble at the authentication stage — the actual bot logic never gets built for weeks.

How OK API Integration Works

Odnoklassniki uses its own request signature scheme. Each call to api.ok.ru/fb.do requires computing an MD5 hash from the concatenation of sorted parameters + session key + application secret. Miss the sorting — signature is invalid, response is invalid_session.

A mobile application communicates with the bot through an intermediary server: client sends message → server receives webhook from OK → processes logic → replies via messages.send. Never store application_secret_key on the device.

A webhook event from OK arrives in this format:

{
  "type": "NEW_MESSAGE",
  "senderId": "123456789",
  "groupId": "70000000000001",
  "object": {
    "body": "Hello",
    "mid": "MESSAGE_ID"
  }
}

On the mobile app side, it's a standard REST client: Retrofit on Android or Alamofire on iOS, which polls your server or connects via WebSocket for real-time responses.

What Actually Needs Implementation

Authorization via OK OAuth. If the bot acts on behalf of a user (not a group), you need an access_token with MESSAGES rights. The OK mobile SDK for Android (one-sdk-android) simplifies the OAuth flow, but for custom UX, you'll need a WebView with redirect URI interception.

Broadcasting to group subscribers. notifications.sendSimple works only if the user has engaged with the group. Attempting to send without prior contact returns user_not_invited_to_group. This is a platform limitation that can't be bypassed.

Auto-replies in groups. The bot monitors GROUP_MESSAGE_NEW via Long Polling or Callback API. Callback API is more reliable — Long Polling requires maintaining a persistent connection, which is suboptimal on a mobile server.

Development Process

Registering the application in OK Dev Center, setting up group permissions and webhook endpoint.

Server-side: handling OK request signatures, routing incoming events, storing dialog history.

Mobile client: chat UI (RecyclerView + DiffUtil on Android, UICollectionView with compositional layout on iOS), integration with your API.

Testing on real OK accounts — emulators don't help here, you need live profiles.

Timeline Estimates

A basic bot with auto-replies in a group and mobile interface — 3–5 days. If broadcasts, dialog analytics, and CRM integration are needed — 2–3 weeks.