Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

284
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!