I want to use Twitter API which is available in iOS5. And I'm successfully posting to twitter as well. But my fear is that, the deployment target for my iphone is 4.2 and so will the app work perfectly with iOS 4.2 devices?
(I don't have iOS 4.2 device to test that)
Use a weak library link and double-check the classes exist before you use them.
Related
I've written some code for my app, with that code a created two buttons, one for sharing with Twitter and one for sharing with Facebook.
My app deployment target is iOS 5.1+.
I made the Twitter and Facebook share sheets with SLComposeViewController.
My question is very simple: Is it possible to use SLComposeViewController in iOS 5.1?
No. You can't.
You need iOS 6 (or 6+) devices or simulators for testing this, Else the app will crash on iOS 5 and earlier versions.
Note:
In iOS 5 you can use TWTweetComposeViewController for displaying the twitter composer but there is no option for facebook in iOS 5.
I intend to use Facebook Share Dialog(https://developers.facebook.com/docs/howtos/share-dialogs-ios-sdk/#sharedialog) for my application and interested to know whether it supports iOS5 or it is only for iOS6 and above?
It's supported on any iOS version that the Facebook app supports, which does include iOS5.
Make sure you get the latest version from the app store.
SLComposeViewController is only available in iOS6 if that's what you mean?
UIActivityViewController is also only available in iOS6.
If you're using less than iOS 6.0 then you'll have to fall back on the Facebook SDK etc...
Is there a solution out there where I can happily use the Facebook 3.1+ SDK, with MonoTouch, for iOS 5+ users?
For users NOT using iOS 6 I want my game to switch to the Facebook iOS app for authentication as normal (if they have it), to avoid the barrier of them entering credentials.
The Facebook iOS SDK 3.1+ (Obj-C) allows this functionality, and it uses the native library if users have iOS 6.
Unfortunately I'm unable to find that functionality for MonoTouch, where my app can easily switch to the Facebook app and quickly authenticate the user, for non iOS 6 users.
I've narrowed down my MonoTouch Facebook options to the following, none of them ideal:
Limit my game to iOS 6, which would allow me to use the monotouch-bindings/facebook native library
Use the Xamarin.Social component, which requires login details (no app switching) and has poor UI
Use a (unsupported since 2011) MonoTouch Facebook 3.0 library, there's a couple out there
Convert the latest Facebook 3.2.1 SDK to MonoTouch, allowing for non-native app switching
The ideal solution would be option 4, which would give the user the app switching experience on any version on iOS. Unfortunately I wouldn't have a clue where to start with that and I haven't got the time to spend a week trying to convert/bind (?) it.
I'm really not keen on limiting the app to iOS 6 users, we want the app to reach as many people as possible.
Thanks in advance for any suggestions and ideas.
The Monotouch binding for the 3.2.1 facebook SDK is here.
Last I used it, it seemed to do everything you want.
There is a bug in Xamarin.iOS. Follow the progress on bug fix here: https://bugzilla.xamarin.com/show_bug.cgi?id=11041
I am trying to integrate twitter in my universal application which should run on devices with IOS4+. After googling i came to know that for the devices with IOS<4.0 we can use Sharekit and for the devices with IOS>5 we have to use the twitter framework. And that twitter framework should be added weakly (BuildPhases-> beside twitter framework make it optional).
Should i use both of them in my app? If so is there any samples that can be run on devices IOS 4+ devices with the help of either Sharekit or twitter framework. Checking the version of the device and proceeding with the relavant process(either sharekit or twitter framework) is possible? If possible can you help with the snippets or sample.
DETweetComposeViewController will give you a tweet composer on iOS 4 that looks like the native one in iOS 5/6. In iOS 5+ it will use the native twitter libraries instead. It's pretty straight forward to setup and use.
I can add the new facebook framework to my project with the new XCode 4.5.2 but I guess it won't work? I don't have access to a device with iOS 4 nor 5 (have simulator of 5). I only need to do Facebook share (post a status from my app).
What strategy should I use to make sure I get facebook share in all platforms (iOS 4, ios 5, ios6)? Right now we are using FacebookManager
https://github.com/ryotarai/FacebookManager
The normal Facebook iOS SDK, from Facebook, will work perfectly fine on all versions of iOS. You should just use that. It will use native auth on iOS 6 and fall back gracefully to switching to the FB app or Safari as appropriate.