我的域名前缀搞乱了...我该如何解决这个问题?
我正在编写一个 Facebook 应用程序,为了使其正常工作,我需要在应用程序设置中设置站点 URL
。问题是,如果我将站点 URL 设置为
domain.com
,
它可以在我的系统以及我测试过的许多系统上运行。我的一些朋友抱怨说它在他们的系统上不起作用。当我查看错误是什么时,它向我发回了以下内容:
Given URL is not allowed by the Application configuration.
这告诉我,我发送的引荐来源网址不是应用程序设置中所期望的内容。所以我所做的就是将 URL 更改为:
www.domain.com
,现在我的朋友可以使用该应用程序,但我这边无法加载。有谁知道如何解决这个问题?这两种情况,我都在 Windows 和 Ubuntu 上使用相同的浏览器版本进行了测试,但我看到了这个问题,但我似乎不明白为什么会发生这种情况。
I am writing a Facebook app and for it to work properly, I need to set the Site URL
inside the Application settings. The problem is that if I set my Site URL to be
domain.com
it works on my system and a bunch of systems that I tested it on. Some of my friends complain that it is not working on their system. When I looked at what the error was, it was sending me back this:
Given URL is not allowed by the Application configuration.
which is telling me that the referrer URI that I am sending it is not what it is expecting in the Application settings. So what I did was I changed the URL to:
www.domain.com
and now my friends are able to use the application and it is failing to load on my end. Does anyone know how to fix this issue? Both cases, I tested it on Windows and Ubuntu with the same browser version yet I am seeing this problem and I don't seem to understand why this is happening.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,我自己不喜欢这个解决方案,但认为这是一个黑客......这确实应该在 Facebook 端修复:(
www.domain.com
希望对有相同行为的人有所帮助。
Ok I am not a fan of this solution myself but consider this a hack... This really should be fixed on Facebook end :(
www.domain.com
Hope that helps someone with the same behavior.