For the complete documentation index, see llms.txt. This page is also available as Markdown.

Social

You are reading the documentation for Bridge SDK v2. If you need the obsolete v1 documentation, see Documentation (v1).

The Social module lets players share the game, invite friends, join your community, add the game to favorites or the home screen, and rate it. Social actions bring free organic traffic and improve retention.

Trigger social actions only from direct player input. Automatic calls on game start, level complete, or similar events violate many platform policies and can get the game rejected.

Configuration

Static options can live in the config instead of code: put shared values in the top-level social[method] block and platform-specific values in platforms[id].social[method]. Options passed at call time override the config.

{
    "social": {
        "share": { "url": "https://t.me/mygame" }
    },
    "platforms": {
        "vk": {
            "social": {
                "joinCommunity": { "groupId": 123456 }
            }
        }
    }
}

Share

Let players share a score, achievement, or game link. Show the share button only when sharing is supported.

Use this flag to decide whether to show the share button.

Platform support · 5 of 26 platforms

Supports: discord, facebook, msn, playdeck, vk

Does not support: crazy_games, dlightek, game_distribution, gamepush, gamesnacks, huawei, jio_games, lagged, microsoft_store, ok, playgama, poki, portal, reddit, samsung, telegram, tiktok, xiaomi, y8, yandex, youtube

Join Community

Let players join your game community, group, or page from inside the game. All options are platform-specific — set them once in the config file and call the method without options:

  • vk, okgroupId is the id of your community.

  • facebookisPage: true follows the official page; without it the player joins the official group.

  • reddit — no options required.

Use this flag to decide whether to show the join-community button.

Platform support · 4 of 26 platforms

Supports: facebook, ok, reddit, vk

Does not support: crazy_games, discord, dlightek, game_distribution, gamepush, gamesnacks, huawei, jio_games, lagged, microsoft_store, msn, playdeck, playgama, poki, portal, samsung, telegram, tiktok, xiaomi, y8, yandex, youtube

Invite Friends

Let players invite friends to the current game session or game page.

Use this flag to decide whether to show the invite-friends button.

Platform support · 4 of 26 platforms

Supports: discord, facebook, ok, vk

Does not support: crazy_games, dlightek, game_distribution, gamepush, gamesnacks, huawei, jio_games, lagged, microsoft_store, msn, playdeck, playgama, poki, portal, reddit, samsung, telegram, tiktok, xiaomi, y8, yandex, youtube

Create Post

Let players create a platform post from inside the game. Besides the common options, a platform can accept its own fields — for example, media on ok.

Use this flag to decide whether to show the create-post button.

Platform support · 2 of 26 platforms

Supports: ok, reddit

Does not support: crazy_games, discord, dlightek, facebook, game_distribution, gamepush, gamesnacks, huawei, jio_games, lagged, microsoft_store, msn, playdeck, playgama, poki, portal, samsung, telegram, tiktok, vk, xiaomi, y8, yandex, youtube

Add to Favorites

Let players add the game to the platform's favorites or bookmarks.

Use this flag to decide whether to show the add-to-favorites button.

Platform support · 2 of 26 platforms

Supports: tiktok, vk

Does not support: crazy_games, discord, dlightek, facebook, game_distribution, gamepush, gamesnacks, huawei, jio_games, lagged, microsoft_store, msn, ok, playdeck, playgama, poki, portal, reddit, samsung, telegram, xiaomi, y8, yandex, youtube

Add to Home Screen

Let players add a shortcut to the game on their home screen or launcher.

Use this flag to decide whether to show the add-to-home-screen button.

Platform support · 4 of 26 platforms

Supports: samsung, tiktok, vk, yandex

Does not support: crazy_games, discord, dlightek, facebook, game_distribution, gamepush, gamesnacks, huawei, jio_games, lagged, microsoft_store, msn, ok, playdeck, playgama, poki, portal, reddit, telegram, xiaomi, y8, youtube

Rate Game

Open the platform's rating flow. Trigger it after a positive moment, such as completing a level or returning after several sessions.

Use this flag to decide whether to show the rate-game button.

Platform support · 3 of 26 platforms

Supports: microsoft_store, ok, yandex

Does not support: crazy_games, discord, dlightek, facebook, game_distribution, gamepush, gamesnacks, huawei, jio_games, lagged, msn, playdeck, playgama, poki, portal, reddit, samsung, telegram, tiktok, vk, xiaomi, y8, youtube

Last updated