paw*_*wan 7 facebook facebook-authentication
我刚刚在justhost.com注册了hostel6.in域名,我在/ fb/hogwarts_team文件夹中有facebook app .
我在我的应用设置中使用以下设置
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/
Run Code Online (Sandbox Code Playgroud)
当我通过网址使用应用程序时
apps.facebook.com/hogwarts_team/
Run Code Online (Sandbox Code Playgroud)
我收到了错误
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.
Run Code Online (Sandbox Code Playgroud)
但是当我通过url使用app时:
hostel6.in/fb/hogwarts_team/
Run Code Online (Sandbox Code Playgroud)
一切正常.
除了这些设置,我在fbmain.php中使用了以下代码
$fbconfig['baseUrl'] = "http://hostel6.in/fb/hogwarts_team/"
Run Code Online (Sandbox Code Playgroud)
我已经在stackoverflow上阅读了类似问题的解决方案,但没有一个对我有用.
您的应用程序将立即重定向到身份验证对话框,redirect_uri参数设置为https://173.254.28.28/~hostelsi/fb/hogwarts_team/- 这与您在问题中列出的配置不匹配。
如果您使用的是 PHP SDK,请检查对 getLoginUrl() 的调用,因为这可能是问题所在,否则请检查您在何处检测用户会话并重定向到 Oauth 对话框(如果不存在),如下所示是你设置redirect_uri不正确的地方。
| 归档时间: |
|
| 查看次数: |
17991 次 |
| 最近记录: |