我尝试使用javascript整合facebook: 为此,我在我的Facebook帐户中创建了具有适当的应用程序域和网站URL的新应用程序
AppDomain: blogspot.com
webSite url: http://lokeshatandroid.blogspot.com/
当我运行我的应用程序时,它显示以下错误消息:
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.
这是我的javascript代码:
<script>
window.fbAsyncInit = function() {
FB.init({
appId : '478757182146328',
status : false,
cookie : true,
xfbml : true,
oauth : true
});
$(".fb_login").click(function() {
FB.login(Facebook_login);
});
};
(function(d){
var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;}
js = d.createElement('script'); js.id = id; js.async = true;
js.src = "https://connect.facebook.net/en_US/all.js";
d.getElementsByTagName('head')[0].appendChild(js);
}(document));
function Facebook_login () {
FB.getLoginStatus(function(response) {
if (response.status === 'connected') {
window.location = "THE URL TO PROCESS THE LOGIN";
}
});
}
</script>
注意:当我使用正确的AppDomain和WebUrl在FB帐户中更改我的应用程序时,它显示以下消息:Changes saved. Note that your changes may take several minutes to propagate to all servers.
这意味着,我可以等一段时间来工作吗?
我该怎么解决这个问题。提前谢谢......