public int SetRequestFriendsCallback(Facebook.RequestFriendsDelegate callback) { if (null == callback) { return(0); } int handlerNum = CallbackManager.AddHandler(delegate(CallbackMessage message) { Log.Debug("[FacebookCallback] RequestFriendsCallback: " + 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 RequestFriends(Facebook.RequestFriendsDelegate callback) { int handlerNum = facebookCallback.SetRequestFriendsCallback(callback); facebookAndroidClass.CallStatic("nmg_facebook_requestFriends", handlerNum); }
public void RequestFriends(Facebook.RequestFriendsDelegate callback) { }
public void RequestFriends(Facebook.RequestFriendsDelegate callback) { int handlerNum = facebookCallback.SetRequestFriendsCallback(callback); nmg_facebook_requestFriends(handlerNum); }