简体   繁体   English

我该如何解决Facebook重定向uri错误?

[英]How Can I solve the facebook redirect uri error?

I am gonna create a facebook login with PHP and MySQL. 我要使用PHP和MySQL创建一个Facebook登录。 So, I built a simple form and add the facebook login button. 因此,我建立了一个简单的表单并添加了facebook登录按钮。 After then, I crate an app on facebook developer console. 之后,我在Facebook开发者控制台上创建了一个应用。 But I am getting such error when click the Facebook Login Button. 但是单击Facebook登录按钮时出现此类错误。 Here is the error. 这是错误。

Can't Load URL: The domain of this URL isn't included in the app's domains. 无法加载URL:此URL的域未包含在应用程序的域中。 To be able to load this URL, add all domains and subdomains of your app to the App Domains field in your app settings. 为了能够加载此URL,请将应用程序的所有域和子域添加到应用程序设置的“应用程序域”字段中。

在此处输入图片说明

I look forward to hearing from you about the solution. 我期待着您的解决方案。 Please let me know if you have any question. 如果您有任何疑问,请告诉我。 Looking to your reply. 期待您的回复。 Thanks. 谢谢。

Facebook added settings for the Facebook Login product. Facebook添加了Facebook Login产品的设置。 To add a valid redirect URL, you have to go to the left menu, below Products , there should be something named Facebook Login . 要添加有效的重定向网址,您必须转到左侧菜单,在Products下方,应该有一个名为Facebook Login

Facebook Login > Settings > Valid OAuth redirect URIs

Update it and click on Save Changes then try again. 更新它,然后单击Save Changes然后重试。

Screenshot of left menu 左侧菜单的屏幕截图

在此处输入图片说明

Screenshot of Client OAuth Settings 客户端OAuth设置的屏幕截图

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM