图表返回了错误:无法加载网址

时间:2018-03-17 15:51:59

标签: facebook-graph-api

自从过去8个月以来我一直在使用Facebook登录API,并且工作正常。今天,在不更改任何设置或任何代码的情况下,API返回错误。

Graph returned an error: 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 sub-domains of your app to the App Domains field in your app settings.

我不明白发生了什么,没有改变。

我交叉检查了所有设置,域名也是一样的。应用程序ID和客户端密钥也是正确的。

2 个答案:

答案 0 :(得分:0)

要解决这个问题,你应该进入:

developers.facebook.com - >你的应用 - >产品> Facebook登录 - >设置 - >客户端OAuth设置 - >有效的OAuth重定向URI

并添加雇用有效的OAuth重定向URI(URI也包括查询参数)

答案 1 :(得分:0)

我有同样的问题,通过更新facebook PHP SDK来解决它。