Not getting FBInstant object in cocos creator 3.7

Hey guys.
I am new to cocos here and i am trying to build a game for Facebook instant games.
I was trying to use the FBInstant object to get the name, photo, and ID but I am not getting the FBInstant object to use with the error "Cannot find name ‘FBInstant’ ". I referred to this code here on github.

/cocos-creator/example-instant-games-deprecated/blob/master/assets/scripts/FBInstantGames.js

Can anyone point me in the right direction like what I am missing here? why I am not able to access the FBInstant object in my code?
Thanks.

Can you show us your source code?

Not sure which code you are asking but here is the code where I am trying to access “FBInstant” object.
let me know if you need anything else for more clarification.
image

This error is caused by the absence of a .d.ts syntax hint file in the TS script. No error is reported at runtime.

Is there any way I can remove this error? I am not able to access its functions because of this error.

You can either add //@ts-ignore to block this prompt, or in tsconfig.json, add the “strict”: false parameter to block all error prompts.