Estoy escribiendo mi código en Replit. Y me da el siguiente error " La propiedad 'fbAsyncInit' no existe en el tipo 'Ventana y tipo de globalThis' ". Para este código:
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. }); };
Pero cuando ejecuto este código en mi código VS, no me da ningún error.
¿Por qué está pasando esto? Gracias por adelantado.