Я пытаюсь использовать Facebook Javascript SDK, чтобы открыть простое окно запроса приложения. Однако, когда я пытаюсь это сделать, ничего не происходит.
Вот мой код.
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="https://www.facebook.com/2008/fbml">
<div id="fb-root"></div>
<script src="http://connect.facebook.net/en_US/all.js"></script>
<script>
FB.init({
appId : '151092658309155',
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true, // parse XFBML
channelUrl : 'channel.html', // channel.html file
oauth : true // enable OAuth 2.0
});
</script>
А потом я звоню
<script>FB.ui({method: 'apprequests', message: 'You should learn more about this awesome game.', data: 'tracking information for the user'});</script>";
Может кто-нибудь объяснить, что я делаю не так?