How do I invite a player to my session?

I’m trying to make a main menu/lobby system but having a rough time inviting other players using Steam. It crashes on SendSessionInviteToFriend no matter what I’m doing. Using player’s Steam IDs for the unique id and I’d appreciate some help. Thanks!

void UMultiplayerSessionsSubsystem::InvitePlayer(const CSteamID& InvitedPlayerSteamID)
{
	UWorld* World = GetWorld();
	if (World) {
		const ULocalPlayer* LocalPlayer = World->GetFirstLocalPlayerFromController();
		if (SessionInterface && LocalPlayer) {
			uint64 SteamID = InvitedPlayerSteamID.ConvertToUint64();
			FString SteamIDString = FString::Printf(TEXT("%llu"), SteamID);
			FUniqueNetIdString InviteeUniqueNetId(*SteamIDString);			
			auto t = LocalPlayer->GetPreferredUniqueNetId();
			FString InviterSteamIDString = FString::Printf(TEXT("%s"), *t.ToString());
			FUniqueNetIdString InviterUniqueNetId(*InviterSteamIDString);

			SessionInterface->SendSessionInviteToFriend(InviterUniqueNetId,
				FName("Test"), InviteeUniqueNetId);
			UKismetSystemLibrary::PrintString(this, FString("Sent invite"));
		}
	}
}