odnoklassniki / ok-js-sdk Goto Github PK
View Code? Open in Web Editor NEWJavascript SDK for OK.ru
License: Apache License 2.0
Javascript SDK for OK.ru
License: Apache License 2.0
Due to using for-of construction in getRemoteUrl function, the SDK is not working correctly on the Chrome Mobile v37 and under (many devices with Android 4.4 & Android 5). Please, replace with ordinary for loop.
Ребята, это позор!
Где документация?
Напишите хотя бы что это SDK для разработки айфрейм приложений, и она не пригодна для использования на сторонних ресурсах.
Проверяйте, есть ли родительское окружение, и если нет сразу предупреждайте, не заставляйте дебажить свой код
Hi there,
We develop new app for OK groups and and have encountered a problem. We cannot make this method working from Android app:
OKSDK.Widgets.askGroupAppPermissions('MESSAGES_FROM_GROUP')
We currently use the latest version of oksdk.js (multi-platform-widgets branch).
When we run app from desktop browser everything works correctly, but not in mobile application.
Maybe this functionality is not yet implemented? Or we are doing something wrong?
Thanks
------------------ In russian:----------------------------------------------------
Здравствуйте,
Мы разрабатываем приложение для групп в Одноклассниках и столкнулись с проблемой. У нас не работает метод
OKSDK.Widgets.askGroupAppPermissions('MESSAGES_FROM_GROUP')
при запуске из андройд приложения. Подключена последняя версия oksdk.js (ветка multi-platform-widgets). Из браузера все работает как положено.
Подскажите, эта функциональность еще не реализована? Или мы что-то делаем неправильно?
Спасибо.
Подключаем виджет строго по инструкции https://apiok.ru/wiki/pages/viewpage.action?pageId=85590923
получаем ошибку:
Uncaught SyntaxError: Unexpected token ) dk:9
смотрим код:
require(['OK/widget/suggest'], function(p){ p.init([{"id":"557643622244","img":"//itd1.mycdn.me/image?t=23\u0026bid=533320962916\u0026id=533320962916\u0026plc=WEB\u0026tkn=*8m7IOyPcwItDsi-MQE6Ko8hj8ng","name":"★Павел Климович★","f":false},{"id":"577007757880","img":"//itd0.mycdn.me/image?t=23\u0026bid=585291321912\u0026id=585291321912\u0026plc=WEB\u0026tkn=*TIhBK_y_6TBYptnKW_caTZG_T6M","name":"Ростислав Князев","f":false},{"id":"565888776160","name":"Stark Studio","f":false},{"id":"571370412204","img":"//itd2.mycdn.me/image?t=23\u0026bid=666007218348\u0026id=666007218348\u0026plc=WEB\u0026tkn=*6IVldFA0hNclUjBKEIOQtLD2rqs","name":"Андрей Алеев","f":false},{"id":"684140909","img":"//itd1.mycdn.me/image?t=23\u0026bid=594963676013\u0026id=594963676013\u0026plc=WEB\u0026tkn=*WOKWk_OIrOEddQgH9X6jl3La5Oc","name":"Александр Гунько","f":false},{"id":"583040678183","name":"Александр Прохорец","f":false},{"id":"208422487281","name":"Павел Сорокин","f":false}],0,); });
и видим, что в фун-ию не передается один из аргументов, скорее всего массив
,0,); });
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.