¿Cómo abrir una ventana emergente al hacer clic en el inicio de sesión / registro de FB ...?

I want to open a pop-up with URL say http://google.com on click of FB api..

Es posible...

here is my piece of code and I want to open my own pop-up along with FB login.

I tried this below code. But pop-up getting blocked in IE.

Por favor, ayuda.

function fac(){
openPopup();// my function which opens pop up
FB.login(function(response) {                                       
   if (response.authResponse) {                          
     FB.api('/me', function(response) {        
 }, {scope: 'email'});

window.open('http://google.com', 'applyurljob', 'height=550, width=800,toolbar=no, directories=no, status=no, menubar=no,scrollbars=yes,resizable=yes,left=200, top=250');

preguntado el 10 de marzo de 12 a las 02:03

1 Respuestas

This isn't really a Facebook question. Your popup is being blocked by a popup blocker. That's what popup blockers do. There is no way around this unless the user clicks on a link to open it, or you time JS with a user click really well (I think that is how dodgy sites do it).

Maybe you should think of another way to acheive what you want to acheive.

respondido 10 mar '12, 04:03

HI Adam ... Thanks for your reply... To be simple.... I want to open two pop-ups on single click.. Is thhis possible.... else let me know if it is possilbe to open a pop-up on load ( with out getting blocked by pop-up blocker of any browsers).. Please help.. - Manoj Hipparagi

Not possible due to security restrictions. I would advise you to rethink your approach. Popups are annoying and don't follow any well designed UI interace or flow. People like taking things 1 step at a time. Keep it that way. - Adam

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.