version:
Cocos2d-html5-v2.2
I’m playing with the plugx social extension in the cocos2d html5 version.
I followed the sample and tried SinaWeibo and twitter part.
@
MySocialManager.getInstance().loadSocialPlugin();
var info = {};
info[“SharedText”] = “Share message : HelloSocial!”;
info[“SharedImagePath”] = “http://www.cocos2d-x.org/images/banner-left.png”;
info[“SharedURLPath”] = “http://www.cocos2d-x.org”;
MySocialManager.getInstance().shareByMode(info, MyShareMode.SNWeibo);
@
It works fine to share the post on the given site (SNWeiboand twitter) but it seems like the
ShareResultListener never get called:
@
var MyShareResult = plugin.ShareResultListener.extend({
onShareResult: function (ret, msg) {
var shareStatus = “Share” + (ret == plugin.ShareResultCode.Success) ? " Successed" : " Failed";
cc.log(msg + shareStatus);
}
});
@
Is there any necessary steps (take SNWeibofor example) I’m missing say:
.must use the registered appkey and the app must be authorized by SNWeibo
.must config something in the app dashboard in SNWeibo
Any suggestion will be appreciated, thanks