There is a button to share in odnoklasniki, when the user clicks a dialog box opens and clicks share. I need to know the answer whether the user shared or not. It seems to have dug the whole API, but this is not the answer. Who can offer, how can I get an answer? If it would be possible to frame the dialog box, then you could create an event on the share button, but alas :)

<div id="ok_shareWidget"></div> <script> !function (d, id, did, st) { var js = d.createElement("script"); js.src = "https://connect.ok.ru/connect.js"; js.onload = js.onreadystatechange = function () { if (!this.readyState || this.readyState == "loaded" || this.readyState == "complete") { if (!this.executed) { this.executed = true; setTimeout(function () { OK.CONNECT.insertShareWidget(id,did,st); }, 0); } }}; d.documentElement.appendChild(js); }(document,"ok_shareWidget","http://site.ru","{width:310,height:50,st:'straight',sz:45,ck:2}"); </script> 
  • `<div id =" ok_shareWidget "> </ div> <script>! function (d, id, did, st) {var js = d.createElement (" script "); js.src = " connect.ok.ru/connect.js "; js.onload = js.onreadystatechange = function () {if (! this.readyState || this.readyState == "loaded" || this.readyState == "complete") {if (! this.executed) {this. executed = true; setTimeout (function () {OK.CONNECT.insertShareWidget (id, did, st);}, 0); }}}; d.documentElement.appendChild (js); } (document, "ok_shareWidget", " site.ru" , "{width: 310, height: 50, st: 'straight', sz: 45, ck: 2}"); </ cript> ` - MasterDons

0