first commit 2
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
function kakaolink_send(text, url, image)
|
||||
{
|
||||
if (window.Kakao && (kakao_javascript_apikey !== undefined)) {
|
||||
if (! Kakao.isInitialized()) {
|
||||
Kakao.init(kakao_javascript_apikey);
|
||||
}
|
||||
}
|
||||
|
||||
if( image === undefined ){
|
||||
image = '';
|
||||
}
|
||||
|
||||
// 카카오톡 링크 버튼을 생성합니다. 처음 한번만 호출하면 됩니다.
|
||||
Kakao.Link.sendDefault({
|
||||
objectType: 'feed',
|
||||
content: {
|
||||
title: String(text),
|
||||
description: url,
|
||||
imageUrl: image,
|
||||
link: {
|
||||
mobileWebUrl: url,
|
||||
webUrl: url // 앱 설정의 웹 플랫폼에 등록한 도메인의 URL이어야 합니다.
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user