【发布时间】:2012-02-08 08:03:48
【问题描述】:
我正在尝试实施 Recipe Box Facebook 应用教程的第二步。我已按照第一步中的说明在 Facebook 上设置我的应用程序,并按照教程第二步中的说明将下面粘贴的代码上传到我的服务器。当我加载网页并单击添加到时间线链接时,我收到一条 Facebook 错误消息:
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>
【问题讨论】:
标签: facebook facebook-javascript-sdk facebook-apps facebook-authentication