Facebook Instant Games Typescript

Hey everyone!

I’m interested in writing a Facebook instant game in Cocos Creator using Typescript but I can’t seem to import the Facebook instant API or use it in any way. I was wondering if I’m doing anything wrong or how I could get this working? Is Cocos creator missing support for Instant Games and typescript?

Thanks!

1 Like

window[‘FBInstant’] is only available after you load it from you index.html and once inside the messenger app.