hello I am having problem related to https://. I have used FB.getLoginStatus(function(response) function in my code. It is only working for http:// but not for https://. I have googled it and found a solution of using FB._https = (window.location.protocol == "https:");. It was working well few days ago but has now stopped working.
My code looks like
<script>
FB._https = (window.location.protocol == "https:");
FB.init({
appId : '<?php echo $this->appId; ?>',
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true // parse XFBML
});
function PostAction(custom_action)
{
console.log('out side of getlogin status');
FB.getLoginStatus(function(response)
{
console.log("in getlogin status");
if (response.authResponse) {
fbcallBack(response);
} else {
FB.login(fbcallBack, {scope:'publish_stream'});
}
});
}
</script>
My PostAction() is called on an onclick event. I have written console.log() to debugg the code. console with out side of reglogin status is triggered but not in getlogin status when using facebook with https. But if I am using http:// it works well.
Can any body guide me please what is the problem? how to fix it?
Regards.
As of yesterday at 22:00 Facebook made this announcement:
http://developers.facebook.com/blog/post/2012/06/20/platform-updates–operation-developer-love/