[英]Having problems using the FaceBook Javascript SDK cannot access UI
我正在嘗試使用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>";
有人可以解釋一下我做錯了什么嗎?
您需要從開發人員站點上已授權的URL運行此頁面。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.