2011-11-12 157 views
-1

我想知道当用户没有签名并点击类似按钮时,在Facebook登录弹出窗口中使用了哪些代码。Facebook登录Popup

这样的事情?

<a href="javascript:void(window.open('http://www.example.com/','blank', 
'scrollbars=yes,toolbar=no,width=700,height=500'))">Test Popup</a> 

回答

0

他们使用Social Plugins的XFBML实现。

首先,您必须将XML名称空间属性添加到页面的根元素。如果没有此声明,XFBML标记将无法在Internet Explore中呈现。

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://ogp.me/ns/fb#"> 

,并把类似按钮的代码你的网页

<fb:like send="true" width="width_value" show_faces="true" /> 

里面也看到:Like button documentation

+0

也许我不解释好。我知道如何添加像按钮到我的网站,我只对代码脸部感兴趣,用来显示登录弹出窗口。 – Samm