Reputation: 686
Monotouch requires a special build for the Iphone/Ipad. Is there a DLL available? Or source code?
thanks,
Jon
Upvotes: 3
Views: 1229
Reputation: 50728
There is a component in the Xamarin Component store that's called Facebook SDK, available here: http://components.xamarin.com/view/facebook-sdk/
It's created from the same organization (outercurve) that created the C# SDK.
Upvotes: 0
Reputation: 1779
There is no port but there are bindings to the obj-c Facebook SDK available. I would use this since it is running against the supported FB SDK.
https://github.com/kevinmcmahon/monotouch-facebook
Upvotes: 1
Reputation: 3134
I have created a simple port of the C# Facebook SDK for MonoTouch. It's not official by any means but it required me massaging some of the bits from Mono's MCS to make it compatible. It also plays nice with MonoTouch's AOT (Ahead of Time) compilation scheme.
Unfortunately you don't get 'dynamic' or 'ExpandoObject' in MonoTouch see my bit about AOT compilation ^. So basically you are required to use the .NET 3.5 APIs or as I like to call it "magic strings ftw!" From the SDK docs:
var client = new FacebookClient();
var me = (IDictionary<string,object>)client.Get("me");
string firstName = (string)me["first_name"];
string lastName = (string)me["last_name"];
string email = (string)me["email"];
https://github.com/anujb/MonoMobile.Facebook
Feel free to contribute. I can imagine there are tons of helpers that can be created and made available to aid iOS developers using MonoTouch decrease the friction of developing these apps. There are quite a few base constructs that are common for most iOS UI requirements
Thanks.
Anuj
Upvotes: 6
Reputation: 7794
currently there is no official port of Facebook C# SDK for monotouch or monodroid although it has been something we really want to have.
as for now you can trak this feature at http://facebooksdk.codeplex.com/workitem/5773
Upvotes: 0