Kakao i Connect Message::BizMessage(ENG)::BizMessage Agent::Sending Friend Talk

페이지 이동경로

Sending Friend Talk

Friend Talk is a service that enables corporate clients to send “information/advertisement” messages to KakaoTalk users. Unlike AlimTalk, it can only send messages to users who have been added as KakaoTalk friends. Friend Talk is sent using phone number information, but it is not sent to all registered phone numbers. Instead, it is sent only to users who have added the KakaoTalk channel, and it is used for sending promotional messages.

The following is the method for sending Friend Talk after completing the BizMsgAgent installation.

NOTE

Sending Friend Talk

Main Column of INSERT Statement
Column Description
MSG_TYPE Friend Talk (No alternative message to be sent upon failure)
Fixed to FX
RESERVE_DATE If future time is input, the message will be sent later.
IMG_ATTACH_CD Whether to attach image
N: No image to attach
Y: To use image URL
M: To use images in the server
KKO_IMG_PATH Absolute path of an image in the server
KKO_IMG_URL Uploaded Friend Talk image URL
KKO_IMG_WIDE_CD Whether if the image is a wide type
N: General image
Y(Default): Wide image
KKO_IMG_LINK_URL URL to link when clicking an image
KKO_AD_FLAG Display mandatory notation in case of an ad message
N: Not to display
Y(Default): To display the mandatory notation

코드예제Sample Code of Sending Friend Talk(MySQL)

INSERT INTO K_F_MESSAGE (
KKO_MSG,
MOBILE_NO,
SENDER_NO,
MSG_TYPE,
RESERVE_DATE,
KKO_BTN_LINK1,
KKO_BTN_LINK2,
KKO_BTN_LINK3,
KKO_BTN_LINK4,
KKO_BTN_LINK5,
IMG_ATTACH_CD,
KKO_IMG_PATH,
KKO_IMG_URL,
KKO_IMG_WIDE_CD,
KKO_IMG_LINK_URL,
KKO_AD_FLAG,
REG_DATE
) VALUES (
'Friend Talk message to send',
'99999999999',  	        # Recipients number needs to be changed.
'99999999999',            # Senders number needs to be changed.
FX,                     # message type (FX: Friend Talk, FS: Friend Talk+ SMS(Alternative), FM: Friend Talk+LMS(Alternative))
NOW(),                    # If future time is input, the message will be sent later.
‘{"name":"App Link Button","type":"AL","scheme_android":"https://kakao.com","scheme_ios":"https://kakao.com","url_mobile":"https://kakao.com"}’,
‘{"name":"Web Link Button","type":"WL","url_mobile":"http://kakao.com"}’,
NULL,
NULL,
NULL,
N,              # N: No image, Y: to attach with Image URL, M: to attach image in the server
NULL,             # KKO_IMG_PATH : Absolute path of an image in the server
NULL,             # KKO_IMG_URL : Uploaded Friend Talk image URL
N,              # KKO_IMG_WIDE_CD : Whether if the image is a wide type, N: general image, Y(default): wide image
NULL,             # KKO_IMG_LINK_URL : URL to link when clicking an image
NULL,             # KKO_AD_FLAG : Display mandatory notation in case of an ad message (Y(Default): display the mandatory notation, No; not to display)
NOW()
);

Send image to friend talk

You can send images in Friends Talk by attaching them in two ways as follows.

  • When you want to send an image file in the server.
Category Input value
KKO_IMG_PATH Enter the absolute path of image
IMG_ATTACH_CD Enter M
  • When you want to send an image through image URL that has already been uploaded.
Category Input value
KKO_IMG_URL Enter image URL
IMG_ATTACH_CD Enter Y

Sending Friend Talk + SMS(Alternative Message)

The following is how to create data to send an SMS alternatively upon the failure of Friend Talk.

Column Description
MSG_TYPE Sending Friend Talk and SMS(Alternative Message)
- Fixed to FS
RESERVE_DATE If future time is input, the message will be sent later.

코드예제Sample Code of Sending Friend Talk + SMS(MySQL)

INSERT INTO K_F_MESSAGE (
KKO_MSG,
MOBILE_NO,
SENDER_NO,
MSG_TYPE,
TITLE,
PHONE_MSG,
RESERVE_DATE,
KKO_BTN_LINK1,
KKO_BTN_LINK2,
KKO_BTN_LINK3,
KKO_BTN_LINK4,
KKO_BTN_LINK5,
KKO_AD_FLAG,
REG_DATE
) VALUES (
'Friend Talk message to send',
'99999999999',  	           # Recipients number needs to be changed.
'99999999999',               # Senders number needs to be changed.
FS,                        # Message type (FX: Friend Talk, FS: Friend Talk+SMS(Alternative message), FM: Friend Talk+LMS(Alternative message))
NULL,                        # SMS title
This is an SMS message.,   # SMS message
NOW(),                       # If future time is input, the message will be sent later.
‘{"name":"App Link Button","type":"AL","scheme_android":"https://kakao.com","scheme_ios":"https://kakao.com","url_mobile":"https://kakao.com"}’,
‘{"name":"Web Link Button","type":"WL","url_mobile":"http://kakao.com"}’,
NULL,
NULL,
NULL,
N,                  # N: without image, Y: with image URL, M: with images in the server
NULL,             # KKO_AD_FLAG : Display mandatory notation in case of an ad message (Y(Default): display the mandatory notation, No; not to display)
NOW ()
);

Sending Friend Talk + LMS(Alternative Message)

The following is how to create data to send a LMS alternatively upon the failure of sending an Friend Talk.

Column Description
MSG_TYPE To sending a Friend Talk and LMS(Alternative Message)
- Fixed to FM
RESERVE_DATE If future time is input, the message will be sent later.

코드예제Sample Code of Sending Friend Talk+LMS(MySQL)

INSERT INTO K_F_MESSAGE (
KKO_MSG,
MOBILE_NO,
SENDER_NO,
MSG_TYPE,
TITLE,
PHONE_MSG,
RESERVE_DATE,
KKO_BTN_LINK1,
KKO_BTN_LINK2,
KKO_BTN_LINK3,
KKO_BTN_LINK4,
KKO_BTN_LINK5,
KKO_AD_FLAG,
REG_DATE
) VALUES (
'Friend Talk to send',
'99999999999',  	            # Recipients number needs to be changed.
'99999999999',                # Senders number needs to be changed.
FM,                         # Message type ((FX: Friend Talk, FS: Friend Talk+SMS(Alternative message), FM: Friend Talk+LMS(Alternative message))
This is a title,            # Message title
This is a LMS message,      # Text message
NOW(),                        # If future time is input, the message will be sent later.
‘{"name":"App Link Button","type":"AL","scheme_android":"https://kakao.com","scheme_ios":"https://kakao.com","url_mobile":"https://kakao.com"}’,
‘{"name":"Web Link Button","type":"WL","url_mobile":"http://kakao.com"}’,
NULL,
NULL,
NULL,
NULL,             # KKO_AD_FLAG : Display mandatory notation in case of an ad message (Y(Default): display the mandatory notation, N: not to display)
NOW ()
);

이 문서가 만족스러운 이유를 알려주세요.
이 문서에 아쉬운 점을 알려주세요.
평가해주셔서 감사합니다.

더 자세한 의견은 contact.dkt@kakaocorp.com 으로 제보해주세요.