Skip to main content

Web Share Feature

After integrating a third-party channel that supports social features for the game, implement the sharing function according to the instructions in Share.

Facebook

Use the share function to share content to Facebook.

accountApi.share({
third_type: 'facebook',
href: '',
hashtag: '#facebook share demo',
app_id: 'xxxxx',
display: 'popup',
})

Parameter Description:

ParameterTypeDescriptionRequired
third_typestringThird-party channel type: facebookRequired
app_idstringThe unique identifier of the Facebook applicationRequired
hrefstringThe link attached to this postRequired
displaystringDialog display mode: page, iframe, popup, touch
For more details, see Share Dialog
Optional
redirect_uristringThe URL to redirect to after the user clicks a button in the dialogOptional

Kakao

Use the share function to share content to Kakao Story or Kakao Talk.

accountApi.share({
third_type: 'kakao',
shareType: '',
jsKey: '',
href: '',
text: '',
imageUrl: '',
title: '',
description: ''
})

Parameter Description:

ParameterTypeDescriptionRequired
third_typestringThird-party channel type: kakaoRequired
shareTypestringShare type:
story - Kakao Story
talk - Kakao Talk
Required
jsKeystringKakao JavaScript KeyRequired
hrefstringShare page URL
When shareType is story, you can set background image and title
Required
textstringAutomatically input text
Set to empty string '' if no default text is needed
Required for story type
imageUrlstringBackground image URL of the share pageRequired for talk type
titlestringTitle of the share pageRequired for talk type
descriptionstringDescription of the share pageOptional for talk type

X

Use the share function to share content to X

accountApi.share({
third_type: 'twitter',
url: '',
text: '',
hashtag: '#twitter share demo',
})

Parameter Description:

ParameterTypeDescriptionRequired
third_typestringThird-party channel type: twitterRequired
urlstringShared URL, will be automatically shortened in the tweet
Shared URL may appear as a card
Optional
viastringUse the via parameter to tag user (@username)Optional
textstringText pre-filled into the tweet editor
User can easily remove it
Optional
hashtagsstringComma-separated list of hashtagsOptional

VK

Use the share function to share content to VK.

accountApi.share({
third_type: 'vk',
url: '',
image: '',
title: 'vk share demo',
})

Parameter Description:

ParameterTypeDescriptionRequired
third_typestringThird-party channel type vkRequired
urlstringShare URLRequired
imagestringImage URLOptional
titlestringTitleOptional