Facebook: Given URL is not allowed by the Application configuration

不羁岁月 提交于 2019-12-22 08:27:05

问题


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:

Given URL is not allowed by the Application configuration.: One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains.

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

NetworkError: 400 Bad Request - 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
   }
}

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?


回答1:


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

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



来源:https://stackoverflow.com/questions/13317207/facebook-given-url-is-not-allowed-by-the-application-configuration

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!