Facebook API, Canvas app in iFrame, Javascript API broken in IE8?

I tried to find help on the FB forums for this, but they really don't help.

My application is configured as an iframe application, but the same behavior occurs if the application is configured as an fbml application, and the page below loads via fb: iframe. The same behavior exists no matter what additional parameters are used. The same behavior exists with a simple FB.init (see below) or with an asynchronous call.

My website URL is correctly set to http://foo.mysitenamehere.foo/ , which is the location of this file.

This is all my application right now: Code:

<html>
<head>
<script src="http://connect.facebook.net/en_US/all.js"></script>
</head>
<body>
<div id="fb-root"></div>
<script type="text/javascript">
  FB.init({
    appId  : '127717367239744',
    status : true, // check login status
    cookie : true, // enable cookies to allow the server to access the session
    xfbml  : true  // parse XFBML
  });

  alert("FB: " + FB + " FB.getSession(): " + FB.getSession());
  FB.getLoginStatus(function(response) {
      if (response.session) {
        alert("1");
      } else {
        alert("2");
      }
    });
</script>
</body>
</html>

Here's what happens:

(Firefox, Chrome, Safari PC Mac, IE) "1" . ( firebug fiddler2), , IE, , login_status.php GET.

IE , null/ undefined. , login_status.php POST GET. POST 4000 . all.js.

login_status.php : :

HTTP/1.1 200 OK
Content-Type: text/plain;charset=utf-8
X-Cnection: close
Date: Fri, 27 Aug 2010 20:50:40 GMT
Content-Length: 22

Invalid Application ID

, (. 4 ), POST login_status.php, , IE.

. , . canvas iframe IE? , , ?

.

+3
2

, . "POST for Canvas". , , .

+1

Flash. -, API Facebook Flash IE. , , , : "Invalid Application ID".

:

Facebook Connect: Flash?

http://forum.developers.facebook.net/viewtopic.php?id=75095 ( )

0

Source: https://habr.com/ru/post/1762003/


All Articles