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

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

问题描述

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



我正在设置Facebook OAuth与我的机器上本地开发的应用程序一起工作。一切都通过Facebook授权工作完美UNTIL我从使用 localhost 移动到另一个域名(我的机器本地)。现在我得到以下错误。 >


无法加载网址:该网址的域名不包含在应用程序的
域中。要加载此网址,请将应用程序的所有域和子域
添加到应用程序设置中的应用程序域字段。




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



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



在我的Facebook应用程序设置...




  • 我的App Domain是 photovote.dev

  • 我的网址是 http://photovote.dev/

  • 我的有效的OAuth重定向URI是
    http://photovote.dev/auth/facebook/callback



错误消息时的URL是..





屏幕截图2

解决方案

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



您可以在此页面中重新检查您的APP的设置吗?



https://developers.facebook.com/apps


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


  2. 检查URL&路径正确输入,并指向您安装了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“此网址的域名未包含在应用的域”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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