Skip to content

Commit

Permalink
[Fix] #13 - 인스타 앱으로 사진 직접 업로드
Browse files Browse the repository at this point in the history
  • Loading branch information
sayyyho committed Sep 23, 2024
1 parent 3ebfc1b commit 900ecd6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/utils/shareInsta.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,10 @@ const captureAndShare = (element, buttons) => {

// 캡처 완료 후 인스타그램으로 이동하는 콜백 함수
const redirectToInsta = (imageUri) => {
const backgroundColor = "#ffffff"; // 예시로 흰색 배경
const link = "https://choco-express.site"; // 공유할 링크

if (isIOS || isAndroid) {
const storyUri = `instagram-stories://share?source_application=your.app.package&background_image=${imageUri}&background_top_color=${backgroundColor}&background_bottom_color=${backgroundColor}&content_url=${link}`;
const storyUri = `instagram-stories://share?source_application=your.app.package&background_image=${imageUri}&content_url=${link}`;

window.location.href = storyUri;
} else {
Expand Down

0 comments on commit 900ecd6

Please sign in to comment.