应用领域必须与Facebook网页游戏网址(https),移动网站网址,Unity二进制网址,网站网址或安全网页标签网址相匹配

问题描述 投票:12回答:3

我正在开发Spring Boot + Facebook集成示例。在这个例子中,我创建了一个at app https://developers.facebook.com/。下面显示了创建的应用程序的屏幕截图。

当我传递域名时,我收到以下错误:

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

enter image description here

我使用的是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中提到的相同代码。

如果需要任何其他细节,请指导并告诉我。

java spring-boot spring-oauth2 spring-social-facebook
3个回答
15
投票

1 - 单击应用程序,然后选择您的应用程序。

2 - 单击屏幕左侧的“设置”按钮。

3 - 在“基本”设置中,单击设置配置下方的“添加平台”按钮。

4 - 在平台对话框中选择网站。

5 - 输入您的URL(localhost在这里工作)。

6 - 在“应用程序域”文本输入中,添加与URL中的域匹配的域。

7 - 保存设置。

Check this link for detail


5
投票

您需要首先添加您的应用运行的平台(网站,Facebook网页游戏,Android等)。见The explanation from Facebook


4
投票

在网站>站点URL保存下添加localhost,然后在App域中添加localhost

© www.soinside.com 2019 - 2024. All rights reserved.