친구 목록 받아오기 질문입니다

수고가 많으십니다. 로그인 및 사용자 정보를 받아온 상태에서 친구 목록을 받기 위해 아래 코드를 작성하였으나 Exception이 발생하고 있습니다.
계정은 카톡 연동된 계정을 사용하였으며, 동의항목은 닉네임,프로필사진은 필수 동의, 카카오계정(이메일) 선택동의, 카카오 서비스내 친구목록은 이용중 동의를 하였습니다.
또한, 팀 관리에도 카톡과 연동된 계정을 추가한 상태고요…
가이드 부탁드립니다.

  1. {msg: ‘insufficient scopes.’, code: -402, api_type: ‘FRIENDS’, required_scopes: Array(1), allowed_scopes: Array(3)}

  2. allowed_scopes: (3) [‘account_email’, ‘profile_image’, ‘profile_nickname’]

  3. api_type: “FRIENDS”

  4. code: -402

  5. msg: “insufficient scopes.”

  6. required_scopes: Array(1)
    1. 0: “friends”
    2. length: 1
    3. [[Prototype]]: Array(0)

  7. [[Prototype]]: Object

window.Kakao.API.request({
url: ‘/v1/api/talk/friends’,
success: function(response) {
console.log('카카오 친구 정보 count response.elements.length : ', response.elements.length);
if(response.elements.length > 0) {
console.log("GetUserInfo success response : " + JSON.stringify(response));
data = response;
}
else {
console.log(‘카카오 친구 정보가 없습니다.’, data);
}
},
fail: function(error) {
console.log(error);
}

안녕하세요.

이용중 동의 후 토큰 조회 까지 해야하는데, FRIENDS 권한 동의가 제데로 안된 것으로 보입니다.

아래 FAQ참고해보시겠어요?

친구 api, 메시지 api 사용을 위한 체크 리스트

아래와 같이 로그인시 친구 scope 값을 받아옵니다.
팀 관리에 추가된 계정 모두 카카오톡과 연동되어 있어야 하나요?
현재 2개 등록되어 있는데 하나는 등록되지 않은 상태입니다.(등록되지 않은 계정은 동의항목은 아래와 같이 설정되어 있습니다.)

  1. {id: 1986048166, scopes: Array(5)}

  2. id: 1986048166

  3. scopes: Array(5)

1. 0: {id: 'profile_nickname', display_name: '닉네임', type: 'PRIVACY', using: true, agreed: true, …}
2. 1: {id: 'profile_image', display_name: '프로필 사진', type: 'PRIVACY', using: true, agreed: true, …}
3. 2: {id: 'friends', display_name: '카카오 서비스 내 친구목록(프로필사진, 닉네임, 즐겨찾기 포함)', type: 'PRIVACY', using: true, agreed: false}
4. 3: {id: 'account_email', display_name: '카카오계정(이메일)', type: 'PRIVACY', using: true, agreed: true, …}
5. 4: {id: 'talk_message', display_name: '카카오톡 메시지 전송', type: 'SERVICE', using: true, agreed: true, …}
6. length: 5
  1. {msg: ‘insufficient scopes.’, code: -402, api_type: ‘FRIENDS’, required_scopes: Array(1), allowed_scopes: Array(3)}
    문제 해결했습니다. 로그인시에 scopes friends를 요청해야하는군요.
    그런데… 친구 목록 카운트가 0으로 넘어오는건 아직 해결 못했네요… 데모에서도 0으로 넘어오고요… ㅜ.ㅜ

메시지 API는 서비스하시는 앱/웹내 이용자간 소셜활동을 위해 제공하는 거라
카카오톡 친구라도 기본적으로 표시되지 않습니다.

친구도 제공하시는 서비스에 카카오 로그인으로 디벨로퍼스앱에 연결되야하고 친구권한, 메시지 발송권한에 동의해야합니다.
(친구API, 메시지API 권한을 받기 전이라면, 팀멤버에 한해 위 동의가 된 경우 조회됩니다.)

위에 FAQ 참고 부탁드려요.