【发布时间】:2015-03-10 20:26:31
【问题描述】:
我刚刚在 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 上类似问题的解决方案,但没有一个对我有用。
【问题讨论】:
标签: facebook facebook-authentication