Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

106
Vistas
How to integrate facebook share in mobile browser and call a function if share is success?

I want to share my website onto facebook and perform a function if the facebook share is success.

I have used Facebook Javascript SDK with display : 'popup'. The share functionality is working fine but opens my page in a new tab which is causing problem executing my function. The issue is only for mobile browser. It is working as expected in desktop

Here is my code:

FB.ui({
       display: 'popup',
       method:  'share',
       href: 'https://www.mywebsite.com/mypage',
       },
       function(response) {
                if (response != 'undefined' && response instanceof Array) {
                    loadAutoPopup_thanksfb();  
                } 
       });
});

I tried With display : 'iframe' method, but it did not solve my problem Please help in return to same page after facebook share for mobile browser

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda