…是不是2.4版本以后就不支持了?
You can export as mobile-web a change the index.htm,… to add FBInstant api.
你用这个方法试试
After building your project to web mobile
1- Add this to your <body></body> inside your index.html .
"<"script src=“https://connect.facebook.net/en_US/fbinstant.6.3.js”>
2 - Add this to your application.js file
function onGameStarted(cc, settings){
…
…
…
FBInstant.initializeAsync();
FBInstant.setLoadingProgress(100);
FBInstant.startGameAsync();
}
you can customize FBInstant.setLoadingProgress(100); across application.js functions so you can get a dynamic loading from 1 to 100