Solved

How to show Connect to Facebook Button in IE9

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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

This article covers the basics of the Sass, which is a CSS extension language. You will learn about variables, mixins, and nesting.
Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

706 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now