How to show a javascript facebook login popup after page loads?

Hi All,

Please help me to clear the issue.

I am using javascript sdk for facebook login popup. I want to load a fb login popup automatically after one page loading. I am calling the fb login function but my browser blocked the popup. But when I call this fb login popup with a button onclick its working fine.

Any idea…

Please help me as soon as possible.

Thanks in Advance!!!