Click here to Skip to main content
15,899,009 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am making an application with FB C# SDK. I'm having a problem,the FBML's login button is not recognizing by Visual Studio and this control is also not showing in IE (any version) but in some applications it is showing in Firefox

Can any one tell me the solution,i have added this in my Layout.cshtml

HTML
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml">

and this is my button
HTML
<fb:login-button perms="email,user_checkins" onlogin="afterFacebookConnect();" 
       autologoutlink="false" >
Posted
Updated 2-Nov-11 9:08am
v7
Comments
Richard MacCutchan 2-Nov-11 5:59am    
Are you sure that "önlogin" is the correct spelling?
Smithers-Jones 2-Nov-11 9:38am    
I see this frequently here on Codeproject, that "on" is turned into "ön" in the codepart. Has been reported in Sitebugs in the past, if I remember correctly, but it looks like the Big M didn't correct it yet. :-)

I brought this to the attention of the authorities again. See here: http://www.codeproject.com/Messages/4067825/Önlogin.aspx
Syed Salman Raza Zaidi 2-Nov-11 7:26am    
i don't know why it is showing it as önlogin in my code it is in correct form onlogin :)
Richard MacCutchan 2-Nov-11 9:48am    
Very strange, I just corrected it but it still shows incorrectly. It must be something to do with the code formatter.
I will report it again.
Smithers-Jones 2-Nov-11 9:58am    
Did it already.

1 solution

Try this one...

1.<script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php" type="text/javascript">
</script>

2.<fb:login-button length="long" onlogin="window.location='Default.aspx'"></fb:login-button>

3.
<script type="text/javascript">
FB_RequireFeatures(["XFBML"], function() {
FB.Facebook.init("xxxxxxxx-apiKEY-xxxxxxxxxxxxx", "xd_receiver.htm");
});
function logoutfb()
{
FB.Connect.logout();

}
</script>

Add these 3 steps in source code.
Thanks
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900