TikTok for Developers

Developer Docs

Last updated October 5, 2026

Sharing

Share the mini game to the user's friends or social channels through the platform share sheet.

TT.ShareAppMessage(param)

Shares the mini game message.

Signature

public static void ShareAppMessage(ShareAppMessageParam param)

Parameters

Field

Type

Description

ImageUrl

string

Share image URL.

Subtitle

string

Share subtitle.

TemplateType

int

Share template type.

Title

string

Share title.

Path

string

Return path.

Query

string

Return query parameters.

Success

Action

Success callback.

Fail

Action<ErrorInfo>

Failure callback.

Complete

Action

Completion callback.

Example

TT.ShareAppMessage(new ShareAppMessageParam
{
    Title = "Play with me",
    ImageUrl = shareImageUrl,
    Path = "pages/game",
    Query = "from=share",
    Success = () => Debug.Log("Share succeeded."),
    Fail = error => Debug.LogError(error.ErrMsg),
    Complete = () => Debug.Log("Share completed.")
});
TikTok for Developers