Link to home
Start Free TrialLog in
Avatar of RETAILREALM
RETAILREALMFlag for United States of America

asked on

How to show Connect to Facebook Button in IE9

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>
ASKER CERTIFIED SOLUTION
Avatar of Hairbrush
Hairbrush
Flag of Jersey image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of RETAILREALM

ASKER

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" />
Thanks...