Prompt for facebook Login on load of a page?

Sep 16, 2010 at 7:12 PM
Edited Sep 16, 2010 at 7:49 PM

Hi I want to prompt users to login when they go to a specific page on my site, so I have the javascript

window.onload = function() {

This seems to work in IE, when you refresh the page, but not in any other browers.  And yes, I know intrusive for users etc etc, I am doing it through a modal as I don't want facebook to refresh the previous page.  I am obviously doing it wrong, any ideas ;)?  I had written a redirect so the modal would go to facebook then login, however it didn't give the desired results.

Edit: working from a Modal didn't appear to work so am now using a popup to achieve the same task, however the original question still stands ;)