应用程序配置不允许给定的 URL [英] Given URL is not allowed by the Application configuration
问题描述
我正在尝试根据 this 创建 Facebook 登录页面 教程.我只改了两行
I am trying to create facebook sign-in page according to this tutorial. I only changed the two lines
appId : '370675846382420', // App ID
channelUrl : '//http://bp.php5.cz/channel.html', // Channel File
我收到以下错误
应用程序配置不允许给定的 URL.: 一个或应用程序的设置不允许更多给定的 URL.它必须匹配网站 URL 或画布 URL,或者域必须是子域应用的域之一.
Given URL is not allowed by the Application configuration.: One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains.
可能是什么问题?
推荐答案
问题是您当前托管应用程序的任何 url 都未在您的应用程序配置中设置.转到您的应用设置并确保网址匹配.
The problem is that whatever url you are currently hosting your app is not setup in your Application configuration. Go to your app settings and ensure the urls are matching.
更新
步骤:
- 转到应用的基本"设置
- 选择添加平台"
- 选择网站"
- 将您的网站网址放在网站网址"下
这篇关于应用程序配置不允许给定的 URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!