gpt4 book ai didi

facebook - API 错误代码 : 191, API 错误描述:指定的 URL 不属于应用程序

转载 作者:行者123 更新时间:2023-11-30 05:19:44 25 4
gpt4 key购买 nike

我刚刚在 justhost.com 注册了 hostel6.in 域名,并且我在 /fb/hogwarts_team 文件夹中有 facebook 应用程序。

我在我的应用设置中使用了以下设置

App Domain:         hostel6.in
Site URL: http://hostel6.in/fb/hogwarts_team
Canvas URL: http://hostel6.in/fb/hogwarts_team/
Secure Canvas URL: https://secure.justhost.com/~hostelsi/fb/hogwarts_team/

当我通过 url 使用应用程序时

apps.facebook.com/hogwarts_team/

我遇到了错误

API Error Code: 191
API Error Description: The specified URL is not owned by the application
Error Message: Invalid redirect_uri: Given URL is not allowed by the Application configuration.

但是当我通过 url 使用应用程序时:

hostel6.in/fb/hogwarts_team/

一切正常。

除了这些设置之外,我还在 fbmain.php 中使用了以下代码

$fbconfig['baseUrl']    =   "http://hostel6.in/fb/hogwarts_team/" 

我已经在 stackoverflow 上阅读过类似问题的解决方案,但没有一个对我有用。

最佳答案

如果是本地测试,添加即可

  1. Localhost 在应用域框中

  2. http://localhost:8080/ 在站点 url 框中。

这对我有用!

关于facebook - API 错误代码 : 191, API 错误描述:指定的 URL 不属于应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10374964/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com