开发者

facebook sharekit

I tried to used Sharekit to share a mes开发者_如何学运维sage from my iPhone application but the message didn't appear.

Here is my code:

-(IBAction) facebook
{
    [SHKFacebook shareText:@"test"];
}

thanks for your help


You need to create an SHKItem, and then share it. Something like this

 NSString* shareText = @"text";
 SHKItem* item = [SHKItem text:shareText]; // make the SHKItem
 item.title = @"Test title";

 // Make the ShareKit action sheet
 SHKActionSheet *actionSheet = [SHKActionSheet actionSheetForItem:item];

 // Display the action sheet
 [actionSheet showInView:self.view];


use this if you dont want to show an actionsheet.

SHKItem *item = [SHKItem image:image title:title];
[SHKFacebook shareItem:item];
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜