I attempted to implement the Facebook API for user login in my Angular-2 application, but I encountered an issue in my typescript file. The error message reads: 'Cannot find name FB'.
(<any>window).fbAsyncInit = function() {
FB.init({
appId : '123456789012345',
cookie : true,
xfbml : true,
version : 'v2.8'
});
FB.getLoginStatus(function(response) {
statusChangeCallback(response);
});
};
Could someone please provide a resolution to this problem? Thank you in advance!!