【发布时间】:2011-05-16 22:54:26
【问题描述】:
以下是我使用 Sharekit 向 facebook 发送图像和标题的方法。我还想在 Facebook 帖子中发送一个 URL。如果我尝试
SHKItem *item = [SHKItem image:image url:url title:titleString];
我收到太多参数错误消息。有人对如何做到这一点有任何想法吗?感谢您的帮助。
- (IBAction)myButtonHandlerAction
{
NSURL *url = [NSURL URLWithString:@"http://example.com/"];
NSString *titleString = [[NSString alloc] initWithFormat:@"*** %@ * \n\nGet the ***** App - It's Free!", entity.name];
UIImage *image = [[[UIImage alloc] initWithData:entity.image] autorelease];
SHKItem *item = [SHKItem image:image title:titleString];
// Get the ShareKit action sheet
SHKActionSheet *actionSheet = [SHKActionSheet actionSheetForItem:item];
// Display the action sheet
[actionSheet showFromBarButtonItem:barbtn animated:YES];
}
【问题讨论】:
标签: iphone objective-c ios facebook sharekit