0
我正在嘗試執行食譜框Facebook應用教程的第二步。我已經按照第一步中的說明在Facebook上設置我的應用程序,並按照本教程第二步中的說明將以下代碼粘貼到我的服務器上。當我加載網頁並點擊添加到時間線鏈接,我收到了Facebook的錯誤,指出:使用Java腳本SDK的Facebook應用用戶身份驗證:給定的URL不允許
Given URL is not allowed by the Application configuration.
任何有識之士將不勝感激。
代碼:
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US"
xmlns:fb="https://www.facebook.com/2008/fbml">
<head>
<head/>
<body>
<div id="fb-root"></div>
<script src="http://connect.facebook.net/en_US/all.js"></script>
<script>
FB.init({
appId:'328617653826422', cookie:true,
status:true, xfbml:true, oauth:true
});
</script>
<fb:add-to-timeline></fb:add-to-timeline>
<h3>
<font size="30" face="verdana" color="grey">
Stuffed Cookies
</font>
</h3>
<p>
<img title="Stuffed Cookies"
src="http://example.com/cookie.jpg"
width="550"/>
</p>
</body>
</html>
您發佈的代碼來自教程的第4階段,我發佈的代碼來自第2階段,您只是試圖驗證用戶。從來沒有,你是絕對正確的,在Facebook應用程序的域名中存在拼寫錯誤,一旦我解決了它的問題。謝謝一堆! – 2012-01-12 00:39:37
沒問題。只是幫助我學習更多東西。 :) – DMCS 2012-01-12 02:25:51