Answer the question
In order to leave comments, you need to log in
How to initialize FAPI?
Good day to all.
You need to work on the client (use some widgets) with the classmates API. For this, an application was created (External and WEB [HTML]), the user was oAuth-authorized on the server, but when trying to initialize FAPI (as indicated in the documentation [ http://apiok.ru/wiki/display/api/FAPI.init +en]):
<script type="text/javascript" src="//api.odnoklassniki.ru/js/fapi5.js"></script>
<script type="text/javascript">
var rParams = FAPI.Util.getRequestParameters();
FAPI.init(rParams["api_server"], rParams["apiconnection"],
function() {
alert("Инициализация прошла успешно");
},
function(error) {
alert("Ошибка инициализации");
}
);
</script>
TypeError: this.webServerUrl is undefined fapi5.js:1:744
Answer the question
In order to leave comments, you need to log in
FAPI is not intended for OAUTH applications and does not work if the application is not launched from the Odnoklassniki platform. For external sites, use the REST API.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question