public IEnumerator OpenInvite(FacebookAPI.InviteCallback callback, int tries = 0) { string url = DIALOG_URL + "apprequests?"; url += "app_id=" + facebookId + "&"; url += "message=" + WWW.EscapeURL("Invite your friends and got coins!") + "&"; url += "title=" + WWW.EscapeURL("Sea Combat") + "&"; url += "redirect_uri=" + WWW.EscapeURL(Flow.URL_BASE + "login/facebook/invite.php?" + "token=" + PlayerPrefs.GetString("token") + "&" + "device=" + SystemInfo.deviceUniqueIdentifier.Replace("-", "") + "&" + "close=" + (Info.IsPlatform(Info.Platform.Android) ? "1" : "0") ); // Up Top Fix Me (dialog) //GameGUI.game_native.openUrlInline(url); Flow.game_native.openUrlInline(url); // Como nao tem como receber o callback do navegador do Prime31 // enviar callback de sucesso (mesmo se o usuario nao estiver postado) if (callback != null) { callback(null); } yield break; }
public GenerateState(FacebookAPI.InviteCallback callback, int tries = 0) { stateType = StateType.OpenInvite; inviteCallback = callback; this.tries = tries; }