× Joomla Facebook Connect support forum

Topic-icon Login Module Facebook button

Support Specialist
14 years 11 months ago #1101 by alzander
Hi there !

I am doing a custom modification of the login module 2.0.3 for myself. Since I am not that familiar with fb Connect maybe you can give me a hint:

I would like to ask a confirmation message "Are you sure that you want to connect to Facebook" .... so I changed the login code like this:
<fb&#58;login-button  size="large" onclick="fb_login_validate(); return false;" background="white" length="long" onlogin="javascript&#058;fb_login_button_click();"></fb&#58;login-button>

When I click on the button the confirm message is asked properly ... but even if it returns false it will not prevent the opening of the Facebook Connect window ? What did I wrong ? Thank you for any hints ....
The topic has been locked.
Support Specialist
14 years 11 months ago #1110 by alzander
That's not really a javascript call within those <fb> tags. Normal javascript wouldn't work there (it works for the onlogin thing because that's how Facebook's API works). I don't know of any good way to do what you're asking, unfortunately, because Facebook specifies what you can and can't do within those <fb> tags.
The topic has been locked.