Html файл:
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="style.css" />
<script type="text/javascript" src="http://api.odnoklassniki.ru/js/fapi5.js" defer="defer"></script>
<script type = "text/JavaScript" defer="defer">
var rParams = FAPI.Util.getRequestParameters(); console.log(rParams);
FAPI.init(rParams["api_server"], rParams["apiconnection"],
function() { console.log('ok')},
function( error ) { console.log(error); }
);
</script>
<script type="text/javascript" src="script.js" defer="defer"></script>
<title>Example 1</title>
</head>