public void RequestFriends(List <string> ids, string langKey, RequstFriendsCallBack callBack) { if (debugInfo) { FacebookHelperDebug("RequestFriends ids = ", ids); } if (IsLoggedIn) { #if !UNITY_EDITOR //LangConfig lang = LangConfig.Current; //FB.AppRequest( // lang.GetLangByKey("social.facebook.message." + langKey),//message // ids,// to // null,//filters // null,//excludeIds // null,//maxRecipients // "",//data // lang.GetLangByKey("social.facebook.title." + langKey),// title // delegate (IAppRequestResult result) { // bool res = false; // if (result != null && string.IsNullOrEmpty(result.Error) && !result.Cancelled) { // res = true; // } // if (callBack != null) { // callBack.Invoke(res); // } // } //); #endif } }
public void InviteByRequest(RequstFriendsCallBack callBack) { if (debugInfo) { FacebookHelperDebug("InviteByRequest"); } if (IsLoggedIn) { //#if !UNITY_EDITOR //LangConfig lang = LangConfig.Current; FB.AppRequest( "invite", // lang.GetLangByKey("social.facebook.message.invite"),//message _inviteFriends, // to null, //filters null, //excludeIds null, //maxRecipients "", //data "invite title", //lang.GetLangByKey("social.facebook.title.invite"),// title delegate(IAppRequestResult result) { bool res = false; if (result != null && string.IsNullOrEmpty(result.Error) && !result.Cancelled) { res = true; } if (callBack != null) { callBack.Invoke(res); } } ); //#endif } }