I’m creating a Facebook App and wanted to avoid firing off the Allow box, but it looks like I’m going to have to do that.
One option could be to call FB.Login(), but that generates a pop-up that will probably be blocked by the user.
Another option is to just use FBML:
<fb:login-button></fb:login-button>
When a user clicks on this button, a window opens that appears to be a pop-up but isn’t (i.e. it’s not blocked). This would then be ideal.
The question now is how can I launch that window that opens without having to have the user click that button? I’d like to not have that button show, but would like it’s clicked state to show.
Is there any way I can auto-click that button?
Thanks.
If the user can interact with it you can too in javascript, so long as it’s not an alert box or one of it’s ilk (cos those would spawn out to the system to be handled, no longer in the domain of the DOM).
So why not call the onclick of that button?