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.
Use this flag to decide whether to show the share button.
In the event sheet:
Gate the button on the Is Share Supported condition.
On a trigger (e.g. Button → On clicked), add platform-specific options with Add Action Parameter (branch on
PlaygamaBridge.PlatformId), then add the Share action.Add the On Share Completed condition and check Is Last Action Completed Successfully.
In the events sheet:
Gate the button on the Is Share Supported condition.
On a trigger (e.g. Button is clicked), add platform-specific options with Add Action Parameter (branch on
PlaygamaBridge::PlatformId()), then add the Share action.Add the On Share Completed condition and check Is Last Action Completed Successfully.
Use this flag to decide whether to show the share button.
Use this flag to decide whether to show the share button.
Use this flag to decide whether to show the share button.
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,ok—groupIdis the id of your community.facebook—isPage: truefollows 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.
Use this flag to decide whether to show the join-community button.
Use this flag to decide whether to show the join-community button.
Use this flag to decide whether to show the join-community button.
Use this flag to decide whether to show the join-community button.
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.
Use this flag to decide whether to show the invite-friends button.
In the event sheet:
Gate the button on the Is Invite Friends Supported condition.
On a trigger (e.g. Button → On clicked), add platform-specific options with Add Action Parameter (branch on
PlaygamaBridge.PlatformId), then add the Invite Friends action.Add the On Invite Friends Completed condition and check Is Last Action Completed Successfully.
In the events sheet:
Gate the button on the Is Invite Friends Supported condition.
On a trigger (e.g. Button is clicked), add platform-specific options with Add Action Parameter (branch on
PlaygamaBridge::PlatformId()), then add the Invite Friends action.Add the On Invite Friends Completed condition and check Is Last Action Completed Successfully.
Use this flag to decide whether to show the invite-friends button.
Use this flag to decide whether to show the invite-friends button.
Use this flag to decide whether to show the invite-friends button.
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.
Use this flag to decide whether to show the create-post button.
In the event sheet:
Gate the button on the Is Create Post Supported condition.
On a trigger (e.g. Button → On clicked), add platform-specific options with Add Action Parameter (branch on
PlaygamaBridge.PlatformId), then add the Create Post action.Add the On Create Post Completed condition and check Is Last Action Completed Successfully.
In the events sheet:
Gate the button on the Is Create Post Supported condition.
On a trigger (e.g. Button is clicked), add platform-specific options with Add Action Parameter (branch on
PlaygamaBridge::PlatformId()), then add the Create Post action.Add the On Create Post Completed condition and check Is Last Action Completed Successfully.
Use this flag to decide whether to show the create-post button.
Use this flag to decide whether to show the create-post button.
Use this flag to decide whether to show the create-post button.
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.
Use this flag to decide whether to show the add-to-favorites button.
Use this flag to decide whether to show the add-to-favorites button.
Use this flag to decide whether to show the add-to-favorites button.
Use this flag to decide whether to show the add-to-favorites button.
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.
Use this flag to decide whether to show the add-to-home-screen button.
Use this flag to decide whether to show the add-to-home-screen button.
Use this flag to decide whether to show the add-to-home-screen button.
Use this flag to decide whether to show the add-to-home-screen button.
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.
Use this flag to decide whether to show the rate-game button.
Use this flag to decide whether to show the rate-game button.
Use this flag to decide whether to show the rate-game button.
Use this flag to decide whether to show the rate-game button.
Use this flag to decide whether to show the rate-game button.
Last updated