Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

287
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda