sharekit

iPhone - Facebook issue with ShareKit

夙愿已清 提交于 2019-12-08 09:56:33
问题 I am using the below code to integrate facebook sharing in my iPhone App. It works fine most of the time. But some times instead of showing a login window , it displays a blank window and nothing is displayed in that. So user fails to share it on Facebook. I don't know whats going wrong !! NSURL *url = [NSURL URLWithString:@"http://www.socialdealspot.com"]; SHKItem *item = [SHKItem URL:url title:deal.title]; item.image = [UIImage imageNamed:@"Icon.PNG"]; SHKActionSheet *actionSheet =

ShareKit method swizzling in Lion / Xcode 4.3.1?

帅比萌擦擦* 提交于 2019-12-07 18:51:27
问题 I recently upgraded to Lion and Xcode 4.3.1 with the iOS 5 SDK, and the sharing library ShareKit is broken - it used method swizzling for its email handler. Apparently Apple has banned or at least attempted to phase out method swizzling. ShareKit imports a file </usr/include/objc/objc-class.h> , which no longer exists, and defines its own method swizzling method SHKSwizzle . It uses this to alter MFMailComposeViewController 's viewDidDisappear: method as follows: SHKSwizzle(

ShareKit + Facebook authentication not working

送分小仙女□ 提交于 2019-12-07 16:10:26
问题 I'm using ShareKit to post to Facebook from a PhoneGap app which I'm working on. I created the app in Facebook and installed the plugin in my project. Twitter works fine, but I get the following error when I try to share on Facebook: " Error: Sorry the application you are using is misconfigured for Facebook integration. Please download the newest version of the application. " I've seen a couple posts that seem to describe this same problem, but the "solutions" involve not using ShareKit and

ShareKit iOS - different content for different platforms

断了今生、忘了曾经 提交于 2019-12-07 02:07:27
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? I was looking for something similar and found it in ShareKit's documentation: http://www.getsharekit.com/docs/ What you

iOS: ShareKit >> Twitter Settings >> Callback URL — What is it?

那年仲夏 提交于 2019-12-06 08:01:00
问题 I'm trying to implement ShareKit in my app; in the SHKConfig.h file, in the section where the Twitter applications settings are required, there is a line where I'm supposed to set the Callback URL : I have opened a Twitter application on Twitter and filled all the fields there, but I'm not clear regarding to what data should be inserted in the Callback URL field: Can anyone explain? 回答1: The callback parameter you write in your application settings in Twitter is ignored, you can write

ShareKit method swizzling in Lion / Xcode 4.3.1?

天大地大妈咪最大 提交于 2019-12-06 07:30:49
I recently upgraded to Lion and Xcode 4.3.1 with the iOS 5 SDK, and the sharing library ShareKit is broken - it used method swizzling for its email handler. Apparently Apple has banned or at least attempted to phase out method swizzling. ShareKit imports a file </usr/include/objc/objc-class.h> , which no longer exists, and defines its own method swizzling method SHKSwizzle . It uses this to alter MFMailComposeViewController 's viewDidDisappear: method as follows: SHKSwizzle([MFMailComposeViewController class], @selector(viewDidDisappear:), @selector(SHKviewDidDisappear:)); What do you think is

ShareKit + Facebook authentication not working

血红的双手。 提交于 2019-12-05 18:58:55
I'm using ShareKit to post to Facebook from a PhoneGap app which I'm working on. I created the app in Facebook and installed the plugin in my project. Twitter works fine, but I get the following error when I try to share on Facebook: " Error: Sorry the application you are using is misconfigured for Facebook integration. Please download the newest version of the application. " I've seen a couple posts that seem to describe this same problem, but the "solutions" involve not using ShareKit and instead integrating manually. This isn't a solution! Has anyone figured this out? More details: ShareKit

iPhone - sending an image with Sharekit to Facebook

六眼飞鱼酱① 提交于 2019-12-05 06:54:57
问题 I'm using ShareKit to send a comment and an image to facebook. Everything's working fine except that if no user image exists (in the coredata/sqlite db) I would like to send a default image instead. Here's my code, with example.png being the default image and initWithData:entity.userImage being the image the user added with their iPhone. Maybe there's something wrong with my if else statement. -(IBAction) fbButton { SHKItem *item; NSURL *url = [NSURL URLWithString:@"http://itunes.apple.com/ae

iOS >> ShareKit >> Selecting the Required Sharing Services

两盒软妹~` 提交于 2019-12-05 02:50:58
问题 I've implemented ShareKit in my app. I'm OK with the default way that it works, but I wish to control the services available to the user to select from; to be more specific, I don't want to deal with all the service embedded by default and just have Facebook, Twitter and Mail. Where in the ShareKit files do I do these settings (removing all of these neglected services that I don't want to deal with their APIs and such)? 回答1: You would need to edit SHK.m in the ShareKit framework. Change the

iPhone - sending an image with Sharekit to Facebook

≯℡__Kan透↙ 提交于 2019-12-03 21:28:09
I'm using ShareKit to send a comment and an image to facebook. Everything's working fine except that if no user image exists (in the coredata/sqlite db) I would like to send a default image instead. Here's my code, with example.png being the default image and initWithData:entity.userImage being the image the user added with their iPhone. Maybe there's something wrong with my if else statement. -(IBAction) fbButton { SHKItem *item; NSURL *url = [NSURL URLWithString:@"http://itunes.apple.com/ae/artist/XXX"]; item = [SHKItem URL:url title:[NSString stringWithFormat:@"Take a look at %@", entity