Use this to let players create posts about their achievements or updates directly from the game.
Bridge.social.is_create_post_supported
Check if the create post feature is supported on the platform.
func_ready():var optionsmatchBridge.platform.id:"vk": options ={"message": "Hello world!","attachments": "photo-199747461_457239629"}"ok": options ={"media":[{"type": "text","text": "Here you can see odnoklassniki API docs(click the link)"},{"type": "link","url": "https://apiok.ru"},{"type": "poll","question": "Do you like our API?","answers": [{"text": "Yes"},{"text": "No"} ],"options": "SingleChoice,AnonymousVoting"} ]}Bridge.social.create_post(options, funcref(self,"_on_create_post_completed"))func_on_create_post_completed(success):print(success)
func_ready():var optionsmatchBridge.platform.id:"vk": options ={"message": "Hello world!","attachments": "photo-199747461_457239629"}"ok": options ={"media":[{"type": "text","text": "Here you can see odnoklassniki API docs(click the link)"},{"type": "link","url": "https://apiok.ru"},{"type": "poll","question": "Do you like our API?","answers": [{"text": "Yes"},{"text": "No"} ],"options": "SingleChoice,AnonymousVoting"} ]}Bridge.social.create_post(options, Callable(self, "_on_create_post_completed"))func_on_create_post_completed(success):print(success)
Add to Favorites
Allow players to bookmark your game for easy access in the future.
Bridge.social.is_add_to_favorites_supported
Check if the add to favorites feature is supported on the platform.