angel of code
angel of code

Reputation: 686

Is there a Monotouch port available for the C# Facebook Sdk?

Monotouch requires a special build for the Iphone/Ipad. Is there a DLL available? Or source code?

thanks,

Jon

Upvotes: 3

Views: 1229

Answers (4)

Brian Mains
Brian Mains

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

Andrew Young
Andrew Young

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

Anuj
Anuj

Reputation: 3134

Short Answer -- Yes!

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.

Usage

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"];

Go Git It!

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

prabir
prabir

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

Related Questions