Skip to content

Commit

Permalink
🚀 update: 카카오 공유하기 objectType 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
Paperkeem committed Oct 23, 2023
1 parent a5dbe6e commit f3ce721
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 5 deletions.
15 changes: 15 additions & 0 deletions public/svg/SnsShareImg.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 9 additions & 5 deletions src/hooks/useSnsShare.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,15 @@ export default function useSnsShare() {
}

kakao.Share.sendDefault({
objectType: 'text',
text: title,
link: {
mobileWebUrl: url,
webUrl: url
objectType: 'feed',
content: {
title,
description: '댕글댕글과 함께 더 나은 세상을 만들어봐요!',
imageUrl: 'https://dangle.co.kr/svg/SnsShareImg.svg',
link: {
mobileWebUrl: url,
webUrl: url
}
}
});
};
Expand Down

0 comments on commit f3ce721

Please sign in to comment.