Like/Share button

Like button will allow visitors on your site to mark favorite materials and share them with friends on Odnoklassniki.

It will help you understand what your audience is more like it, and at the same time attract new visitors to your site.

Like button builder



Background color
Text color

Additional data(?)

Image URL


Code to insert

How our grabber work

When sharing a resource on Odnoklassniki, problems may occur with the media content processing.

Restrictions on sharing images:

  • min size:
    • web: 128x128
    • mobile: 50x50
  • min aspect ratio: 0.5

For untrusted domains grabber does not handle images and video. You should use one of the page layouts protocols:

  • Open Graph This method allows you to set specific tags like og:title, og:description, og:image and og:video in a <head></head> html-tag to help grabber choosing which content to use on this page.
  • OExchange

Additional features

  • You can use “share” without setting a button, for this you need to open a link in following form:

Only the url parameter is required, the other parameters are optional.

  • The ability to know the number of “shares” to your page without setting a button:

Grabber requests are sent from:


Embedding multiple widgets

To embed multiple widgets on a single page you can use the code:

!function (d, id, did, st) {
  var js = d.createElement("script");
  js.src = "";
  js.onload = js.onreadystatechange = function () {
  if (!this.readyState || this.readyState == "loaded" || this.readyState == "complete") {
    if (!this.executed) {
      this.executed = true;
      setTimeout(onOkConnectReady, 0);
function onOkConnectReady() {

Like event tracking

On like event widget sends a postMessage with following data


You can track event on page with widget by the following javascript code:

function listenForShare() {
    if (window.addEventListener) {
        window.addEventListener('message', onShare, false);
    } else {
        window.attachEvent('onmessage', onShare);

function onShare(e) {
    var args ="$");
    if (args[0] == "ok_shared") {