简体   繁体   English

共享图像时,ios sharekit 2.0不显示图像预览

[英]ios sharekit 2.0 not showing image preview when sharing image

I'm using Sharekit2.0 to share images to facebook and twitter. 我正在使用Sharekit2.0将图像共享到Facebook和Twitter。

Here is the code used for sharing the image in facebook. 这是用于在Facebook中共享图像的代码。

SHKItem *sharerItem = [SHKItem image:image title:@""]; SHKItem * sharerItem = [SHKItem图片:图片标题:@“”];

SHKTwitter *sharer = [[SHKTwitter alloc] init];
[sharer setItem:sharerItem];
[sharer share];

But this not showing any preview of the image when sharing (like twitter is showing). 但这在共享时不显示图像的任何预览(例如显示Twitter)。 just a text view to enter title for image. 只是一个文本视图以输入图像标题。

My question would be: is it possible to show to image preview when sharing to facebook ? 我的问题是:与Facebook共享时是否可以显示图像预览?

Thanks 谢谢

Try: 尝试:

SHKItem * sharerItem = [SHKItem image:image title:@"P"];
[SHKTwitter shareItem:sharerItem];

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM