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

问题描述

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

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到

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

它不再存在于高级版本中。 Facebook改变了它的设计,现在看起来像

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.

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

07-13 16:22