Solved

How to show Connect to Facebook Button in IE9

Posted on 2011-03-24
3
859 Views
Last Modified: 2012-05-11
My web application uses facebook authentication. My application is in ASP.NET 4.0.  In all browsers the "Connect ot Facebook" button display & works fine even IE 7,8 but when I run my application in IE 9 button not availabel. Below is my source code.


<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FB.aspx.cs" Inherits="Test.FB" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml">
<head id="Head1" runat="server">
    <title></title>
    <script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php"
        type="text/javascript"></script>
   
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <fb:login-button length='long' onlogin='window.location.reload()' tooltip="Click to go for Facebook authentication"
            size='medium' >
        </fb:login-button>
    </div>
   <%-- <table id="structure" border="1">
        <tr>
            <td id="right_col_2">
                <div id="facebk" style="height: 5px;">
                    <fb:login-button length='long' onlogin='window.location.reload()' tooltip="Click to go for Facebook authentication"
                        size='medium'>
                    </fb:login-button>
                </div>
            </td>
        </tr>
    </table>--%>
    </form>
    <script language="javascript" type="text/javascript">
        FB.ensureInit(function () { FB.XFBML.Host.parseDomTree(); });
        FB.init("API_Key", "");
    </script>
</body>
</html>
0
Comment
Question by:RETAILREALM
  • 2
3 Comments
 
LVL 12

Accepted Solution

by:
Hairbrush earned 500 total points
ID: 35214008
This is a known problem.  Try adding the following meta tag in the <head> </head>:

<meta http-equiv="X-UA-Compatible" content="IE=7" />

see http://wordpress.org/support/topic/plugin-simple-facebook-connect-ie-9-compatibility and http://forum.developers.facebook.net/viewtopic.php?pid=326059
0
 

Author Comment

by:RETAILREALM
ID: 35231251
Thanks for your reply. It's working......

i have already try this but not working cause few mistake like,

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
0
 

Author Closing Comment

by:RETAILREALM
ID: 35231278
Thanks...
0

Featured Post

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Objective of This Article In 1990’s, when I was a budding software professional, I had a lot of confusion about which stream or technology, I had to choose to build my career. In those days, I had lot of confusion like whether to choose System so…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question