<a id="chat-channel-button" class="counsel cs02"></a>
<script src="https://t1.kakaocdn.net/kakao_js_sdk/2.7.2/kakao.min.js"
integrity="sha384-TiCUE00h649CAMonG018J2ujOgDKW/kVWlChEuu4jK2vxfAAD0eZxzCKakxg55G4" crossorigin="anonymous"></script>
<script>
Kakao.init('키 값 생략'); // 사용하려는 앱의 JavaScript 키 입력
</script>
<script>
Kakao.Channel.createChatButton({
container: '#chat-channel-button',
channelPublicId: '아이디', });
Kakao.API.request({
url: '/v1/api/talk/channels',
success: function(response) {키값
console.log(response);
},
fail: function(error) {키값
console.log(error); }
});
</script>
카카오톡 채널 연동을 시켰으나 웹모바일 둘 다
이용자 쪽에서는 “페이지를 찾을 수 없습니다.”
저희 쪽에서는 아래와 같은 에러가 뜹니다.
kakao.min.js:98 Uncaught
1. cn {name: 'KakaoError', message: 'Invalid parameter keys: success,fail at API.request', stack: 'Error\n at https://t1.kakaocdn.net/kakao_js_sdk/…kaocdn.net/kakao_js_sdk/2.7.2/kakao.min.js:98:215'}
1. message: "Invalid parameter keys: success,fail at API.request"
2. name: "KakaoError"
3. stack: "Error\n at https://t1.kakaocdn.net/kakao_js_sdk/2.7.2/kakao.min.js:98:19634\n at https://t1.kakaocdn.net/kakao_js_sdk/2.7.2/kakao.min.js:98:140\n at https://t1.kakaocdn.net/kakao_js_sdk/2.7.2/kakao.min.js:98:215"
4. [[Prototype]]: Error at https://t1.kakaocdn.net/kakao_js_sdk/2.7.2/kakao.min.js:98:19634 at https://t1.kakaocdn.net/kakao_js_sdk/2.7.2/kakao.min.js:98:140 at https://t1.kakaocdn.net/kakao_js_sdk/2.7.2/kakao.min.js:98:215
해결이 안나서 방법 여쭙니다.
+로그인시도시에 URL
https://accounts.kakao.com/login/?continue=https://pf.kakao.com/_xfxkylE/chat?api_ver=1.1&kakao_agent=sdk%2F2.7.2%20os%2Fjavascript%20sdk_type%2Fjavascript%20lang%2Fko-KR%20device%2FWin32%20origin%2Fhttps%253A%252F%252Fwww.ybmky.com&app_key=1377dda762e3aeb7e1385264c153d0a8&referer=https%3A%2F%2Fwww.ybmky.com%2F#login