“Facebook连接”对话框未关闭

编程入门 行业动态 更新时间:2024-10-24 02:34:20
本文介绍了“Facebook连接”对话框未关闭的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 我正试图在我的网站(主要使用ASP.NET)上使用Facebook Connect。当用户单击连接按钮时,应用程序设置中的连接URL将在连接对话框本身内打开。 如何使用连接按钮在页面中打开目标网址?

我的按钮是:

< fb:login-button size =largeonlogin =window.location.reload();>

请查看我在 www.stockmadness.logicbomb.in (单页网站)

谢谢

解决方案

以这种方式,它适用于我:

< fb:login-button onlogin =document.location.href = document.location.href;> < / fb:login-button>

如果删除onlogin属性(这是默认行为),它也会关闭。 看来你在onlogin属性中传递的代码是javascript的一个子集,可以吗?

我写了一个Facebook连接教程这里。 : - )

I'm trying to use Facebook Connect on my website (which mostly uses ASP.NET). When the user clicks on the "Connect" Button, the "Connect URL" in Application Settings opens within the Connect Dialog itself. How can I make the target URL open in the page with the "Connect" button?

My button is :

<fb:login-button size="large" onlogin="window.location.reload();">

Please do check out what exactly I'm saying at www.stockmadness.logicbomb.in (single page website)

Thanks.

解决方案

In this way it works for me:

<fb:login-button onlogin="document.location.href=document.location.href;"> </fb:login-button>

It closes also if you remove the onlogin attribute (it's the default behaviour). It seems that the code you pass in the onlogin attribute is a subset of javascript, is it possible?

I wrote a facebook connect tutorial here. :-)

更多推荐

“Facebook连接”对话框未关闭

本文发布于:2023-11-06 13:36:52,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1563834.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:对话框   Facebook

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!