[LayaAir 1.0]关于 接facebook sdk

想问问 大家有接过吗~ laya没有看到资料那些,听说 去年8月laya就不做关于facebook SDK 相关的东西了哇。。 有哪位大哥哥有demo 啥的吗 或者链接。。 facebook 官方的列子我也照着写了几天 问题总是能出在 初始化上
已邀请:

Allen_叶

赞同来自:

// 游戏初始
_proto.Init = function(callback){
if(onFaceBook){
FBInstant.initializeAsync().then(function() {
this.playerID = FBInstant.player.getID();
if(callback){
callback();
}
});
}
 
//资源加载进度
_proto.LoadingProcess = function(percentage){
if(onFaceBook){
FBInstant.setLoadingProgress(percentage);
}
}
 
//资源加载完成后,开始游戏
_proto.Start = function(callback){
if(onFaceBook){
FBInstant.startGameAsync().then(function() {
this.contextID = FBInstant.context.getID();
photoUrl = FBInstant.player.getPhoto();
playerName = FBInstant.player.getName();
if(callback){
callback();
}
})
}

曲速

赞同来自:

我做过 有需要的加我qq:1341834223

要回复问题请先

商务合作
商务合作