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

查看:82
本文介绍了无法加载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现在将某些功能用作插件.在左侧选择产品,然后添加产品.然后选择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.

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

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