Solved

How to show Connect to Facebook Button in IE9

Posted on 2011-03-24
3
861 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Get MySQL database support online, now!

At Percona’s web store you can order your MySQL database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card.

Question has a verified solution.

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

Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL several years ago, it seemed like now was a good time to update it for object-oriented PHP.  This article does that, replacing as much as possible the pr…
Dramatic changes are revolutionizing how we build and use technology. Every company is automating, digitizing, and modernizing operations. We need a better, more connected way to work together as teams so we can harness the insights from our system…
The purpose of this video is to demonstrate how to Import and export files in WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Click on Too…
The purpose of this video is to demonstrate how to set up an RSS Feed on a WordPress Website. This will be demonstrated using a Windows 8 PC. Feedburner will be used for this demonstration. Go to your WordPress login page. This will look like the…
Suggested Courses

635 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