Solved

How to show Connect to Facebook Button in IE9

Posted on 2011-03-24
3
860 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
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…

732 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