PDA

View Full Version : FB login button not rendered in window



rmd
20 Oct 2010, 1:30 AM
I integrated Facebook's and use FBML scripts for FB Connect. But FB login button won't render on the ext window. I've tried this code but it won't work.

...
},{
xtype:'box',
autoEl:{
html:'<fb:login-button></fb:login-button>',
}
}
...

Any idea? Thanks.

Condor
20 Oct 2010, 2:19 AM
That would only work if <fb:login-button> just created HTML (but it does more than that).

Instead, use:

{
xtype: 'box',
el: 'fb-login-button',
autoShow: true
}
...
<body>
...
<div id="fb-login-button" class="x-hidden"><fb:login-button></fb:login-button></div>
</body>

rmd
20 Oct 2010, 2:39 AM
Thanks Condor. Your suggestion works perfectly. :)

akpotosufredrick
20 Mar 2012, 2:29 AM
Hhahahahaha those were my words when trying this out.
Thank you verry much. Now i know one more way of using facebook type of things.