카카오 스토리에 글을 포스팅 하기위해 테스트로
아래와 같이 두가지 API를 테스트 해보았는데 KOErrorDomain Code=4 “Authentication tokens don’t exist.” 에러가 발생합니다. 카카오톡 글쓰기는 문제가 없는데 카카오스토리만 발생합니다.
확인 부탁드립니다.
[KOSessionTask storyPostNoteTaskWithContent:@"post note test"
permission:KOStoryPostPermissionFriend
sharable:YES
androidExecParam:nil // @{@"andParam1":@"value1",@"andParam2":@"value2"}
iosExecParam:nil // @{@"iosParam1":@"value1",@"iosParam2":@"value2"}
completionHandler:^(KOStoryPostInfo *post, NSError *error) {
if (!error) {
// 성공
NSLog(@"postId=%@", post.ID);
} else {
// 실패
NSLog(@"failed to post a note.");
}
}];
[KOSessionTask storyPostTaskWithContent:@"post note test"
permission:KOStoryPostPermissionFriend
imageUrl:nil
androidExecParam:nil
iosExecParam:nil
completionHandler:^(BOOL success, NSError *error){
if (success) {
// 성공
NSLog(@"success=%d", success);
} else {
NSLog(@"failed to post.");
}
}];
error
Error Domain=KOErrorDomain Code=4 “Authentication tokens don’t exist.” UserInfo={NSLocalizedDescription=Authentication tokens don’t exist.}