KaKao Talk分享,首先要...,然后需要外國的蘋果賬號才能下載(韓國或者日本的).
先指出問題:分享出去的圖片是需要先傳到Kakao的后臺.
[[KLKImageStorage sharedStorage] uploadWithImage:image success:^(KLKImageInfo * _Nonnull original) {
}];
后面是自定義模板:
[[KLKTalkLinkCenter sharedCenter] sendCustomWithTemplateId:@"9527" templateArgs:@{@"text":@"Kiki Star",@"link":_zhuboDic[@"myurl"],@"content":original.URL.absoluteString} success:^(NSDictionary<NSString *,NSString *> * _Nullable warningMsg, NSDictionary<NSString *,NSString *> * _Nullable argumentMsg) {
} failure:^(NSError * _Nonnull error) {
}];
自定義模板:
1.創(chuàng)建應(yīng)用(拿到參數(shù))

App Settirgs Summsy.png
2.添加模板是在tools

Pasted Graphic.png
3.創(chuàng)建的是消息模板,對你沒看錯.

Tool.png
4.創(chuàng)建完成的模板

Pasted Graphic 12.png

Pasted Graphic 4.png
5.更改模板參數(shù)

Pasted Graphic 6.png
6.刪除或者修改

Pasted Graphic 8.png
7.也可以插入視頻

Pasted Graphic 11.png
自定義分享還是有點惡心的.
記錄:
Kakao Talk被微信收購了....可能以后....