Facebook:应用程序配置不允许给定URL [英] Facebook: Given URL is not allowed by the Application configuration

查看:200
本文介绍了Facebook:应用程序配置不允许给定URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从本周末开始,我们的一些较旧的Facebook游戏无法加载。我相信这是游戏没有获得访问令牌,因此无法代表用户(即/我等)打电话。我在Javascript控制台中看到以下内容:

Starting this weekend a number of our older Facebook games are failing to load. I believe this is an issue caused by the game not getting an access token, and thus not able to make calls on behalf of the user (i.e. /me, etc.). I am seeing the following in the Javascript console:

应用程序配置不允许使用URL:一个或多个给定的URL不被允许应用程序的设置。它必须与网站网址或画布网址匹配,否则域名必须是应用程序域名之一的子域名。

之后我收到此错误我相信是相关的:

Afterwards I get this error, which I believe is related:

NetworkError:400错误请求 - graph.facebook.com/me?fields=locale

{
   "error": {
      "message": "An active access token must be used to query information about the current user.",
      "type": "OAuthException",
      "code": 2500
   }
}

奇怪的是,这几个游戏都没有触及过几个月。所以这让我觉得Facebook用API改变了一些东西。我在这里和搜索引擎上进行了广泛的搜索,无法找到任何解决方案。有没有人有任何想法?

The strange part is that none of these games have been touched for months. So that leads me to think that Facebook changed something with their API. I did an extensive search here and on search engines and was not able to find anything with a solution. Does anyone have any ideas?

推荐答案

您正在使用一个旧版本的JS SDK,它引用了一个旧的,列入黑名单的资源。

You are using a stale version of the JS SDK, which references an old, blacklisted resource.

请始终使用从connect.facebook.net提供的副本。

Please always use the copy as served from connect.facebook.net.

这篇关于Facebook:应用程序配置不允许给定URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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