카카오톡 공유하기 api사용중 버튼 링크 주소를 다르게 줄 수 없나요? 채택완료
아래 버튼 buttons 처리부분에서 각각 다른 주소를 줄수없나요? 무조건 개발자센터에 등록된 도메인만 적용되는데. 따로 줄 수 있는 방법좀 알려주시면 너무나 감사하겠습니다^^
Copy
kakaoTalkButton = Kakao.Link.createDefaultButton({
container: '#kakaotalk-sharing-btn',
objectType: 'feed',
content: {
title: title,
description: description,
imageUrl: imageUrl,
link: {
mobileWebUrl: 'https://000.com',
webUrl: 'https://000.com',
},
},
social: {
likeCount: 286,
commentCount: 45,
sharedCount: 845
},
buttons: [{
title: '상품구매',
link: {
mobileWebUrl: 'https://daum.net',
webUrl: 'https://daum.net',
},
},
{
title: '문의하기',
link: {
mobileWebUrl: 'https://naver.com',
webUrl: 'https://naver.com',
},
},
],
});
답변 2개
답변을 작성하려면 로그인이 필요합니다.
로그인