java 应用程序域必须与 Facebook 网页游戏 URL (https)、移动站点 URL、Unity 二进制 URL、站点 URL 或安全页面选项卡 URL 的域匹配
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/44505276/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
App domains must match the domain of the Facebook Web Games URL (https), Mobile Site URL, Unity Binary URL, Site URL or Secure Page Tab URL
提问by khem raj regmi
I am developing Spring Boot + Facebook Integrationexample. In this example, I've created an at app https://developers.facebook.com/. The screen shot of the created app shown below.
我正在开发Spring Boot + Facebook 集成示例。在此示例中,我创建了一个 at 应用程序https://developers.facebook.com/。创建的应用程序的屏幕截图如下所示。
Also when I was passing the Domain name I am getting the below error:
此外,当我传递域名时,出现以下错误:
App domains must match the domain of the Facebook Web Games URL (https), Mobile
Site URL, Unity Binary URL, Site URL or Secure Page Tab URL. Please correct these
domains: localhost
I am using the same code mentioned in the URL blocked: This redirect failed because the redirect URI is not white-listed in the app's client OAuth settings. Make sure that the client and web.
我正在使用URL 中提到的相同代码被阻止:此重定向失败,因为重定向 URI 未在应用程序的客户端 OAuth 设置中列入白名单。确保客户端和 web.
Please guide and let me know if need any other details.
请指导并让我知道是否需要任何其他详细信息。
回答by khem raj regmi
1 - Click Apps and then select your app.
1 - 单击应用程序,然后选择您的应用程序。
2 - Click the Settings button on the left side of the screen.
2 - 单击屏幕左侧的设置按钮。
3 - In the Basic settings, click the Add Platform button below the settings configuration.
3 - 在基本设置中,单击设置配置下方的添加平台按钮。
4 -Select Website in the platform dialog.
4 - 在平台对话框中选择网站。
5 - Enter your URL (localhost works here).
5 - 输入您的 URL(本地主机在这里工作)。
6 - In the App Domains text input, add your domain that matches the one in the URL.
6 - 在 App Domains 文本输入中,添加与 URL 中的域匹配的域。
7 - Save your settings.
7 - 保存您的设置。
回答by che-azeh
You need to add the platform (website, facebook web games, android, etc.) your app is running on first. See The explanation from Facebook
您需要先添加运行应用程序的平台(网站、facebook 网页游戏、android 等)。见Facebook 的解释
回答by Maihan Nijat
Add localhost
under the Website > Site URL save and then add localhost
in the App domain.
添加localhost
网站>网站URL下保存,然后添加localhost
在应用程序域。