我无法将FB登录添加到我的网站.我只是注册了申请表:
URL: http://www.chusmix.com/
DOMAIN: www.chusmix.com
Run Code Online (Sandbox Code Playgroud)
然后我粘贴了登录代码并替换了我的APP id:
<html>
<head>
</head>
<body>
<div id="fb-root"></div>
<script src="http://connect.facebook.net/en_US/all.js"></script>
<script>
FB.init({
appId:'212044715486306', cookie:true,
status:true, xfbml:true
});
</script>
<fb:login-button>Login with Facebook</fb:login-button>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
但是当我点击登录按钮时,我得到了 Error 191: redirect_uri is not owned by the application
此代码也在页面中:http://www.chusmix.com/game/根据Facebook所说填写字段DOMAIN使域中的所有页面都能够使用Facebook授权.但是我也尝试直接指向登录按钮所在的域,我得到了同样的错误.
甚至没有重定向网址.
更新:似乎登录工作在http://www.chusmix.com/game/但不在http://chusmix.com/game/(没有www).
如果用户没有输入www,有没有办法让它工作?或者我必须使用重定向?
| 归档时间: |
|
| 查看次数: |
34024 次 |
| 最近记录: |