Facebook OAuth “此 URL 的域未包含在应用程序域中" [英] Facebook OAuth "The domain of this URL isn't included in the app's domain"

查看:46
本文介绍了Facebook OAuth “此 URL 的域未包含在应用程序域中"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

让我首先说我已经搜索了这个问题的答案有一段时间了......

我正在尝试设置 Facebook OAuth 以使用我在我的机器上本地开发的应用程序.一切都在 Facebook 授权下完美运行,直到我从使用 localhost 转移到另一个域名(仍然在我的机器本地.)现在我收到以下错误.

<块引用>

无法加载 URL:此 URL 的域未包含在应用程序的域.要能够加载此 URL,请添加所有域和子域应用设置中的应用域"字段.

我的主机文件包含 127.0.0.1 photovote.dev(完美)

我在应用程序中的重定向(使用 Socialite)是 http://photovote.dev/auth/facebook/callback

在我的 Facebook 应用设置中...

  • 我的应用域是 photovote.dev
  • 我的站点 URL 是 http://photovote.dev/
  • 我的有效 OAuth 重定向 URI 是http://photovote.dev/auth/facebook/callback

出现错误信息时的网址是..

屏幕截图 2

解决方案

如果您在 Facebook 中创建应用程序时输入了错误的详细信息,通常会发生这种情况.或者您是否更改了现有应用的网址?

能否请您在此页面重新检查您的 APP 设置?

https://developers.facebook.com/apps

  1. 选择正确的应用程序并点击编辑按钮;

  2. 检查 URLs &路径输入正确并指向您安装 Ultimate Facebook 插件的站点.

Let me first start with saying I've searched for an answer to this question for quite some time...

I'm trying to setup Facebook OAuth to work with my application that is being developed locally on my machine. Everything was working perfect with Facebook authorization UNTIL I moved from using localhost to another domain name (still local to my machine.) Now I'm getting the following error.

Can't Load URL: The domain of this URL isn't included in the app's domains. To be able to load this URL, add all domains and subdomains of your app to the App Domains field in your app settings.

My hosts file contains 127.0.0.1 photovote.dev (works perfect)

My redirect in my app (using Socialite) is http://photovote.dev/auth/facebook/callback

In my Facebook App Settings...

  • my App Domain is photovote.dev
  • my Site URL is http://photovote.dev/
  • my Valid OAuth redirect URIs is http://photovote.dev/auth/facebook/callback

The URL at the time of the error message is..

https://www.facebook.com/v2.5/dialog/oauth?client_id=XXXXXXXXXXXXXXX&redirect_uri=http%3A%2F%2Fphotovote.dev%2Fauth%2Ffacebook%2Fcallback&scope=email&response_type=code&state=0ztcKhmWwFLtj72TWE8uOKTcf65JmePtG95MZLDD

I'm at a loss of what the problem is...

Screen Shot 1

Screen Shot 2

解决方案

This usually happens if you have entered the wrong details when you created the App in Facebook. Or have you changed a URL's of an existing App?

Can you please recheck the settings of your APP in this page?

https://developers.facebook.com/apps

  1. Select the correct App and click in the edit button;

  2. Check the URLs & paths are correctly entered and are pointing to the site where you have installed Ultimate Facebook plugin.

这篇关于Facebook OAuth “此 URL 的域未包含在应用程序域中"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆