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

286
Vistas
Why do I get this error "Property 'fbAsyncInit' does not exist on type 'Window & typeof globalThis'."?

I am writing my code in Replit. And it gives me the following error " Property 'fbAsyncInit' does not exist on type 'Window & typeof globalThis' ". For this code:

window.fbAsyncInit = function() {
FB.init({
    appId   : '*************',
    cookie  : true, // Enable cookies to allow the server to access the session.
    xfbml   : true, // Parse social plugins on this webpage.
    version : 'v13.0' // Use this Graph API version for this call.
});

FB.getLoginStatus(function(response) {
    // Called after the JS SDK has been initialized.
    statusChangeCallback(response); // Returns the login status.
});

};

But when I run this code in my VS code it doesn't give me any error.

Why is this happening? Thanks in advance.

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