IE8 Win7 Facebook Connect Problem

Update 4/8/09 - I am in the new week without any success or response to the Facebook forums. Not one response there, which is quite disappointing. I also cannot understand how to put generosity on this issue, but I really really would like to solve this problem.


I looked through a lot of posts to find out if this was before, and it is not. Here's the short version:

I am looking at a sample FB Connect tutorial (v1) and cannot make it work in IE8 on Win7. It works as expected on FF3 on Win7.

Long version:

I was surprised that everything did not work, since I had quite a few copies and stickers on the content. I missed a bit with a javascript alert () call, so I set it to see, even if the parser even reached it. I entered the following code:

[my raw html] Or use, <fb:login-button length="long" onlogin="alert('yo!!!');"></fb:login-button> [/my raw html] 

Warning does not appear in IE8. He works for FF.

When I return to the update_user_box () call, my HTML looks like this:

 Or use, <fb:login-button length="long" onlogin="update_user_box();"></fb:login-button> <script type="text/javascript"> function update_user_box() { var user_box = document.getElementById("user"); user_box.innerHTML = "<span>" + "<fb:profile-pic uid='loggedinuser' facebook-logo='true'></fb:profile_pic>" + "Welcome, <fb:name uid='loggedinuser' useyou='false'></fb:name>." + "You are signed in." + "</span>" FB.XFBML.Host.parseDomTree(); } FB.init("23e24c73feed7ca0f6afd876575842de", "../../Connect/xd_receiver.htm", { "ifUserConnected": update_user_box }); </script> 

Again, this works great in FF3. My photo appears and all that. It actually upsets me more that he worked in FF3, and not in a full working situation.

The following is an example of IE8 behavior:

View the source of this page:

 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <body> <script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/XdCommReceiver.js" type="text/javascript"></script> </body> </html> 

5. If I close this window and enter my credentials in the application window, the page will reload using the FBConnect button.

As I said, I get the expected behavior in FF3, but not IE8. I even tried IE8 compatibility mode, but that didn't work either. Does anyone have any clues as to what is happening?

My HTML tag looks like this:

Therefore, I know that this is not a problem.

+6
internet-explorer-8 facebook asp.net-mvc
source share
5 answers

I had the same problem. Make sure you have the HTML namespace setting on the main page:

 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml"> 

http://forum.developers.facebook.com/viewtopic.php?id=23412

In addition, I did some loading to prevent a null error:

 FB.Bootstrap.requireFeatures(["Connect"], function() { FB.init("--api-key--","domain/xd_receiver.htm"); FB.Connect.ifUserConnected(your_function_here); }); 
+7
source share

IE8 and Facebook Connect Simple.

On my Facebook Connect website I am developing Facebook widgets, I just didn’t upload

Of course, you should have Javascript enabled in IE8 (a lot of other information about this), which I made sure.

Still no.

Then a post above Darrent Newton ....

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml">

There is a trick! Thanks to Darren.

+1
source share

I'm having trouble connecting facebook to work with the new Javascript SDK authentication methods - it worked fine in Chrome and FF, but not in IE8.0

After some twist, I found that <html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml"> .

I also had to change the settings of my application: Change the connection URL to something like: http://XXX.example.com.org:8006/XXXX/ and change the base domain to something like: example.com

Note. When I test the local installation of the computer, the base domain for the IP address does not work. Rendering Method: iframe

Javascript for reference:

 <script src="http://connect.facebook.net/en_US/all.js"></script> <script> FB.init({appId: '{{facebook_app_id}}', status: true, cookie: true, xfbml: true}); FB.Event.subscribe('auth.sessionChange', function(response) { if (response.session) { // A user has logged in, and a new cookie has been saved window.location.reload(); } else { // The user has logged out, and the cookie has been cleared } }); </script> 
0
source share

I have a very similar problem. On IE7-8 Win7, I get "Page cannot be displayed." The popup is empty.

In Fiddler, it will not pass the secure CONNECT (host) call.

I am using Javascript JavaScript API with API.ui / stream.Publish. I installed 2 applications. One for the French domain, one for the English domain. The English domain answers correctly, but the French does not. Both connections to domains / base domains were set up correctly.

This works with any other browser / os combination.

I tried fb xmlns, no results.

0
source share

A bit late, but it's FREEDOM! Hope this helps others!

FB Connect Display Popup Log in IE8, IE9 Solution:

Use custom feed URL

1. Add the channelUrl parameter to the FB.init session.

FB.init ({appId: 'YOUR APP ID', status: true, cookie: true, xfbml: true, channelUrl: "http: //yourdomainname/fbtest/channel.html" // Add this file to your website.
});

2. The contents of the channel.html file should be as follows:

3. Check your FB login ... Enjoy ...

See http: //forum.developers.facebook.net ... for the full forum topic.

0
source share

All Articles