카카오 링크 동적으로 보내기 사용중입니다
Uncaught TypeError: Cannot read property ‘focus’ of null
at w (kakao.min.js:87)
at S (kakao.min.js:87)
at Object.e.sendDefault (kakao.min.js:87)
이런 에러가 뜨면서 공유할 때 parameter 를 제대로 못넘기는 것 같아요
함수는
function sendLink(post,image,title,content) {
console.log(image);
Kakao.Link.sendDefault({
objectType: ‘feed’,
content: {
title: title,
description: content,
imageUrl: image,
link: {
mobileWebUrl: ''
webUrl: ‘’
}
},
installTalk: true
});
}
이런 식입니다