Encountering the error
"Cannot find name 'FBInstant'.ts(2304)"
while using FBInstant games SDK in Cocos Creator 3.8.
Attempting to resolve by following a guide:
The guide states:
"Cocos Creator simplifies the process for users:
Integrating with Facebook Instant Games SDK and automatic initialization, enabling direct API calls One-click packaging in Cocos Creator build panel meets Facebook's specifications What users need to do:
Use Facebook Instant Games SDK for platform features Upload packaged game to Facebook"
It further explains:
"Creator integrates Instant Games SDK from Facebook automatically on game load (initializeAsync and startGameAsync). Users interact directly via FBInstant module, refer Instant Games SDK instructions. Additionally, Facebook provides JavaScript SDK for social features accessible through FB module, but user manual integration needed."
However, utilizing FBInstant module produces the error:
"Cannot find name 'FBInstant'.ts(2304)"
,
Seeking examples or tutorials integrating Facebook Instant Games SDK with Cocos Creator. Assistance on correctly importing the module is appreciated instead of just fixing the error.
Browsing Githubs and Cocos tutorials for guidance:
No luck finding specific Facebook Instant Games examples.
Your help or insights on next steps are welcome. Any examples would be highly beneficial!