无法加载 URL:此 URL 的域未包含在应用程序的域中 - Facebook 登录 [英] Can't Load URL: The domain of this URL isn't included in the app's domains - Facebook Login

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

问题描述

我正在尝试从用户那里获取访​​问令牌

I'm trying to get access token from user

string response_script = "<script>top.location.href='https://www.facebook.com/v2.4/dialog/oauth?response_type=token&client_id=[APPLICATION ID]&redirect_uri=https://www.facebook.com/[APPLICATION URL]/?sk=app_[PAGE ID]&scope='; </script>";

但我收到一个错误:

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

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.

该代码运行良好.所以我认为需要将我的网址添加到

That code works well. So I think that needs to add my url to

有效的 OAuth 重定向 URI

Valid OAuth redirect URIs

但是它不再存在于高级部分.facebook 改变了它的设计,现在它看起来像这个.图片太大了,因为我把它放在了 stackoverflow 之外

But It doesn't exists in advanced section anymore. facebook changed it's design and now it looks like this. It's too big image and because I have it in out of stackoverflow

我能做什么?

推荐答案

我遇到了和你一样的问题,我已经解决了.Facebook 现在将某些功能用作插件.在左侧选择产品并添加产品.然后选择 Facebook 登录.从那里直接开始,您会看到所有 Oauth 选项都显示出来.

I had the same issue as you, I figured it out. Facebook now roles some features as plugins. In the left hand side select Products and add product. Then select Facbook Login. Pretty straight forward from there, you'll see all the Oauth options show up.

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

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