我是 facebook API 的新手,我有一些与 facebook 身份验证相关的问题。
我已经创建了一个应用程序并编辑了域和 url。
网站域名
礼品网
站点网址http://www.giftme.web44.net/ http://www.giftme.web44.net/
我在我的网站网页上使用了以下内容:
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
FB.init({
appId : '3347207XXXXXXXX', // App ID (I've replaced for security reasons)
channelUrl : 'http://giftme.web44.net/channel.html/', // Channel File
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true // parse XFBML
});
// Additional initialization code here
};
// Load the SDK Asynchronously
(function(d){
var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
if (d.getElementById(id)) {return;}
js = d.createElement('script'); js.id = id; js.async = true;
js.src = "//connect.facebook.net/en_US/all.js";
ref.parentNode.insertBefore(js, ref);
}(document));
</script>
我仅使用以下内容创建了页面“channel.html”:
<script src="//connect.facebook.net/en_US/all.js"></script>
最后我使用了登录按钮:
<div class="fb-login-button" >Login with Facebook</div>
我做错了什么?
我不断收到此错误:
API错误代码:191
API错误描述:指定的URL不属于应用程序
错误消息:无效的redirect_uri:URL 信息不允许进行应用程序配置。
http://www.giftme.web44.net/
不等于http://giftme.web44.net/
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)