编程语言
首页 > 编程语言> > javascript – 无法加载网址:此网址的域名未包含在应用的域中

javascript – 无法加载网址:此网址的域名未包含在应用的域中

作者:互联网

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

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>";

但我收到一个错误:

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.

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

Valid OAuth redirect URIs

但它不再存在于高级部分中. facebook改变了它的设计,现在它看起来像this. It’s too big image and because I have it in out of stackoverflow

我能做什么?

解决方法:

我和你有同样的问题,我想通了. Facebook现在将一些功能作为插件.在左侧选择产品并添加产品.然后选择Facbook Login.从那里很直接,你会看到所有的Oauth选项出现.

标签:tabpage,javascript,facebook,facebook-access-token
来源: https://codeday.me/bug/20190926/1821286.html