public int SetRequestInvitersCallback(Facebook.RequestInvitersDelegate callback) { if (null == callback) { return(0); } int handlerNum = CallbackManager.AddHandler(delegate(CallbackMessage message) { Log.Debug("[FacebookCallback] RequestInvitersCallback: " + message); Result result = message.GetResult(); IList facebookProfileList = message.GetList("facebookProfileList"); List <FacebookProfile> profileList = null; if (facebookProfileList != null) { profileList = new List <FacebookProfile>(); foreach (IDictionary profileDic in facebookProfileList) { string playerId = profileDic.GetString("playerId"); string facebookId = profileDic.GetString("facebookId"); string name = profileDic.GetString("name"); profileList.Add(new FacebookProfile(playerId, facebookId, name)); } } if (null != callback) { callback(result, profileList); } }); return(handlerNum); }
public void RequestInviters(Facebook.RequestInvitersDelegate callback) { int handlerNum = facebookCallback.SetRequestInvitersCallback(callback); facebookAndroidClass.CallStatic("nmg_facebook_requestInviters", handlerNum); }
public void RequestInviters(Facebook.RequestInvitersDelegate callback) { }
public void RequestInviters(Facebook.RequestInvitersDelegate callback) { int handlerNum = facebookCallback.SetRequestInvitersCallback(callback); nmg_facebook_requestInviters(handlerNum); }