sharekit

SHKFacebook shareItem:item execution exception

一笑奈何 提交于 2019-12-25 01:54:06
问题 When I put the following codes into "didSelectRowAtIndexPath" of TabelViewController, it comes out an exception. How can I resolve this? SHKItem *item = [SHKItem text:@"I need your fashion advice. I am using my iPhone app iFrockUp to help me decide on stuff for my event. Could you pretty please rate it and give me your stars out of 5? Your vote will help rank it in the app."]; item.tags = [NSArray arrayWithObjects:@"iFrockUp", @"share", @"clothes", nil]; [SHKFacebook shareItem:item];

Receive error when trying to post on Twitter using ShareKit

本小妞迷上赌 提交于 2019-12-23 10:12:27
问题 I'm trying to use sharekit to post on Twitter and Facebook. I have two buttons which call the following two methods: - (IBAction) shareOnFacebook:(id)sender { // Create the item to share NSString *someText = @"Share on Facebook."; SHKItem *item = [SHKItem text:someText]; // Share the item [[SHK currentHelper] setRootViewController:self.navigationController]; [SHKFacebook shareItem:item]; } - (IBAction) shareOnTwitter:(id)sender { // Create the item to share NSString *someText = @"Share on

ShareKit iOS - different content for different platforms

女生的网名这么多〃 提交于 2019-12-23 02:56:16
问题 I am trying to use ShareKit to share via email an HTML string and share on Facebook a regular stream containing an image and some text. The sample project just shows how to share the same info for every platform(Twitter, Facebook, email) but I want to be able to share different content according to the platform. SHKItem *item = [SHKItem image:image title: @"title"]; item.text = @"share text"; SHKActionSheet *actionSheet = [SHKActionSheet actionSheetForItem:item]; any ideas? 回答1: I was looking

How can I improve my TWTweetComposeViewController code in iOS?

谁说胖子不能爱 提交于 2019-12-21 05:43:09
问题 I have implemented the following code to do a Twitter Share. In my code I try to test for iOS 5 and if that does not work, I go back to the old way of sharing using ShareKit's Twitter code. I showed the code to a co worker and he suggested that my code may have flaws and that I need to do two things: Do a proper Run Time check?? (since it may crash on IOS 4 and earlier) EVEN though it did not. Weak Link the Twitter frame work Can someone kindly explain what a proper run time check would be?

ShareKit in Xcode 4 - lots of deprecated

。_饼干妹妹 提交于 2019-12-20 10:41:17
问题 I have just loaded the ShareKit files into my project (which worked nicely otherwise), and went to build and run (with no code additions as yet). I received 11 warnings and 37 errors! Is there something I'm missing here? The warnings are for deprecated functions in the SHK**** files. Any ideas? Using Xcode 4. Thanks for any assistance, Kolya 回答1: This fork (https://github.com/mogeneration/ShareKit) compiles/works perfectly on XCode 4/iPhone 3.2.1 Simulator, it should be good for you, besides

iphone ShareKit with Video upload for facebook?

亡梦爱人 提交于 2019-12-18 08:53:23
问题 Does anyone know how i can use Sharekit to post a video to facebook? Should i customize it or is there something already out there that can do this from sharekit? Any extensions i can download? Thanks! 回答1: Instead of using the sharekit i suggest to use FBGraphAPI for this... Here are the following steps, that you can post video on Facebook.. in .h file #import "FbGraph.h" #import "FbGraphFile.h" #import "JSON.h" #import <MobileCoreServices/MobileCoreServices.h> @interface ViewController :

iPhone/iOS - How to use “ShareKit” to post only to Facebook or only to Twitter

杀马特。学长 韩版系。学妹 提交于 2019-12-17 17:52:49
问题 In my iPhone app, I have two two buttons, labeled "Facebook" and "Twitter". I want to use the Sharekit framework which makes my sharing very simple. But as shown in the sample code of ShareKit, I can only show many sharing services, which I don't want to include. I want my "Facebook" button to only show the Facebook sharing service, and the same with Twitter. How can I modify ShareKit to work like that? 回答1: Update : Since this answer is still popular, I just wanted to add that with iOS 5 &

iPhone/iOS - How to use “ShareKit” to post only to Facebook or only to Twitter

邮差的信 提交于 2019-12-17 17:52:21
问题 In my iPhone app, I have two two buttons, labeled "Facebook" and "Twitter". I want to use the Sharekit framework which makes my sharing very simple. But as shown in the sample code of ShareKit, I can only show many sharing services, which I don't want to include. I want my "Facebook" button to only show the Facebook sharing service, and the same with Twitter. How can I modify ShareKit to work like that? 回答1: Update : Since this answer is still popular, I just wanted to add that with iOS 5 &

Error running Simulator: duplicate symbol for architecture i386

ⅰ亾dé卋堺 提交于 2019-12-13 16:18:44
问题 I added ShareKit framework to try and here is the error running it in Simulator: duplicate symbol _LFHRReadStreamClientCallBack in .../Xcode/DerivedData/....build/Objects-normal/i386/LFHTTPRequest-8C6F35228BA446B9.o and .../Xcode/DerivedData/....build/Objects-normal/i386/LFHTTPRequest-8ACF920D803FDCA6.o for architecture i386 I looked at previous posts Build Error - missing required architecture i386 in file and tried to edit project.pbxproj commenting FRAMEWORK_SEARCH_PATHS lines out as well

Using t.co in sharekit - iphone application

雨燕双飞 提交于 2019-12-13 04:43:42
问题 I am using sharekit but I don't want to use the bityl service for shortening the URL I want to use the built-in t.co provided by twitter. How can I do that? Thanks. 回答1: Unfortunately, T.co is not available as an API to developers. It's an internal shortner used by Twitter to automatically shorten long links. Check out this post by Raffi, Twitter developer, to learn more about it. You won't be able to control how the links get shortened. But all URL's over 20 characters are automatically