Steam SendInvite always fails

I’m trying to use the SendInvite function to send a game invitation to friends via Steam. But whenever I try to call it, the FOnSendInviteComplete delegate always returns “false” for bWasSuccessful. This is the source code I have for the invite function:

void UKingdomsGameInstance::SendInviteToPlayer(const FUniqueNetId& PlayerToInvite)
{
/* If the friends interface is valid, send an invite to the target player. */
if (FriendsInterface.IsValid())
{
FriendsInterface->SendInvite(0, PlayerToInvite, EFriendsLists::ToString(EFriendsLists::Default), OnSendInviteCompleteDelegate);
}
}

The FUniqueNetId is valid, and I have a function called OnSendInviteComplete that is bound to the FOnSendInviteComplete delegate. OnSendInviteComplete is successfully called, but its bWasSuccessful parameter is false, meaning it failed to send the invite. I’ve tried sending it to Steam friends who are online, and I’ve also tried building my project, using another machine and an alternate Steam account, and inviting that player while playing the same project. It always returns “false.”

Is there something I’m missing?

Thanks in advance!

Just check the source code. SendInvite is not implemented by the Steam Online Subsystem.

bool FOnlineFriendsSteam::SendInvite(int32 LocalUserNum, const FUniqueNetId& FriendId, const FString& ListName, const FOnSendInviteComplete& Delegate /*= FOnSendInviteComplete()*/)
{
	Delegate.ExecuteIfBound(LocalUserNum, false, FriendId, ListName, FString(TEXT("SendInvite() is not supported")));
	return false;
}

Ah, that makes sense. So if I use Steam’s API, would it send them an actual Steam invitation, or could I use a delegate to create my own in-game invitation for the receiver to see?

The ShooterGame example uses SendSessionInviteToFriend, but I don’t think I can use that because I want to connect the player to a beacon, not a session.

You can still send an invite using the IOnlineSessionPtr Session = Online::GetSessionInterface();
and Session-SendSessionInviteToFriend

Send Invite in the friends interface is intended to be for inviting someome to be a friend I believe.