php - Connect with Facebook buttons - how does the pop-up window work? -


does know how facebook connect buttons generate pop-up window use sign in?

i think there's code this..

<a href="#" onclick="mywindow=window.open('http://www.yahoo.com','mywindow','toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=no,resizable=no,width=600,height=300'); return false;">click here</a> 

but haven't found similar in documentation.

the facebook api uses called fbml (facebook markup language). tag based markup written inline other html on website, , processed javascript library. connect script is:

<script src="http://connect.facebook.net/en_us/all.js"></script> 

if use script , provide following tag:

<fb:login-button></fb:login-button> 

then javascript render button.

more details can found here: http://developers.facebook.com/docs/authentication/

the button automatically generate popup window when click it, don't have worry code required. if want see code generated anyway, use tool firebug on existing fbconnect button @ javascript.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -