Social Interactions

Enable social features to enhance player engagement by allowing them to share, join communities, invite friends, and more.

Share

Use this to allow players to share game content or achievements on social media platforms.

Bridge.social.is_share_supported

Check if the share feature is supported on the platform.

func _ready():
    var options

    match Bridge.platform.id:
        "vk":
            options = {
                "link": "YOUR_LINK"
            }
        "facebook":
            options = {
                "image": "A base64 encoded image to be shared", 
                "text": "A text message to be shared"
            }
        "msn":
            options = {
                "title": "A title to display",
                "image": "A base64 encoded image or image URL to be shared", 
                "text": "A text message to be shared"
            }

    Bridge.social.share(options, funcref(self, "_on_share_completed"))

func _on_share_completed(success):
    print(success)

Join Community

Enable players to join social communities related to your game, enhancing engagement and loyalty.

Check if the join community feature is supported on the platform.

Invite Friends

Allow players to invite their friends to play the game, helping to grow your player base organically.

Check if the invite friends feature is supported on the platform.

Create Post

Use this to let players create posts about their achievements or updates directly from the game.

Check if the create post feature is supported on the platform.

Add to Favorites

Allow players to bookmark your game for easy access in the future.

Check if the add to favorites feature is supported on the platform.

Add to Home Screen

Enable players to add a shortcut to your game on their home screen for quick access.

Check if the add to home screen feature is supported on the platform.

Rate the Game

Encourage players to rate your game, providing valuable feedback and improving visibility.

Check if the rate the game feature is supported on the platform.

Allow players to follow links to external websites, such as your game’s official site or related resources.

Check if external links are allowed on the platform.

Last updated