需要Facebook ML帮助 [英] Facebook ML Help Required

查看:89
本文介绍了需要Facebook ML帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用FB C#SDK开发应用程序.我有问题,Visual Studio无法识别FBML的登录按钮,并且该控件也未在IE(任何版本)中显示,但在某些应用程序中却在Firefox中显示

任何人都可以告诉我解决方案吗,我已经在Layout.cshtml
中添加了此解决方案

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 xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml">


这是我的按钮


and this is my button

<fb:login-button perms="email,user_checkins" onlogin="afterFacebookConnect();" 

       autologoutlink="false" >

推荐答案

试试这个...

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长度="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");
});
函数logoutfb()
{
FB.Connect.logout();

}
</script>

在源代码中添加这三个步骤.
谢谢
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


这篇关于需要Facebook ML帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆