无法加载网址:此网址的域名不包含在应用的域中 [英] Can't Load URL: The domain of this URL isn't included in the app's domains

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

问题描述

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

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,请将应用的所有域和子域添加到应用程序设置中的应用程序域字段。

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.

代码运行良好所以我认为需要添加我的URL到

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现在将一些功能用作插件。在左侧选择产品并添加产品。然后选择Facbook登录。从那里很简单,你会看到所有的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.

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

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