Sharekit - sending a url link to facebook
来源:互联网 发布:淘宝买东西怎么发国外 编辑:程序博客网 时间:2024/06/01 09:29
Sharekit - sending a url link to facebook
up vote0down votefavorite
share [fb]share [tw]
Below is the method I'm using with Sharekit to send an image and a title to facebook. I also want to send a URL along with the facebook post. If I try
SHKItem *item = [SHKItem image:image url:url title:titleString];
I get a too many arguments error message. Does anyone have any ideas on how this should be done? thanks for any help.
- (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
91% accept rate
feedback
2 Answers
activeoldestvotes
up vote1down vote
There is no method -[SHKItem image:url:title:]
. So an error is being raised. Currently there is no mechanism to do what you require using ShareKit so you will have to customize ShareKit for your needs. You should also look at the Graph API.
feedback
up vote0down vote
Maybe what you want is a url item, with an image attached to it. If so, you can do this :
SHKItem *item = [SHKItem URL:[NSURL URLWithString:@"http://example.com/"] title:@"Check this link"];[item setCustomValue:@"http://example.com/someimage.jpg" forKey:@"picture"];[SHKFacebook shareItem:item];
I've implemented this with the latest sharekit, it works for me.
This doesn't appear to work, but this solution does: stackoverflow.com/questions/7122414/… – cannyboy Aug 31 at 15:25
feedback
- Sharekit - sending a url link to facebook
- how to post URL with Image on facebook by ShareKit
- iPhone - How to send image + text on facebook using sharekit
- The Secret to Getting a Large Facebook Link Thumbnail
- Sending a URL to Another App on Android and iOS with Delphi XE5
- Sending Control Requests to a Service
- XMLHttpRequest - Sending a Request to the Server
- Sending Data Directly to a Printer
- Sending Twist Messages to a Real Robot
- ShareKit
- ShareKit
- ShareKit
- shareKit
- 1222 sending a re-INVITE to change the session
- Dompdf for PHP & Replace Url to link
- how to update facebook share link, titile, description
- How to Create A Facebook Page
- iphone 里使用sharekit实现分享信息到facebook、twitter
- Linux内核大讲堂 (二) 传说中的字符设备(2)
- windows动画窗体
- 各种PHP字符串函数总结
- SQL语句实现定制化查询
- 今天你多态了吗?
- Sharekit - sending a url link to facebook
- jQuery(3-2)jQueryDOM中的操作
- how to post URL with Image on facebook by ShareKit
- 创建一个对话框
- css样式的简单应用
- Struts下ActionForm的生命周期
- Microsoft .NET Architecting Applications for the Enterprise
- 我的csdn第四课感想————很好滴!
- 专题 15 TCP套接字编程