2

I am developing a mobile application with MonoTouch and Mono for Android, and possibly Win8. I need to access the Facebook API, and I would prefer to do that in C# given the above mentioned platforms.

I know that I can make HTTP requests towards the Facebook API myself, but I am wondering if there are any libraries that wraps these for me and give me an object model to program against. I have done some searching around but have mostly come across libraries that are no longer supported or shut down.

Does anyone have recent experience with my problem and can give recommendations?

4

3 に答える 3

2

これは、MonoforAndroidを使用したFacebookの統合を開始するのに役立ちます。

于 2012-08-21T16:46:51.323 に答える
1

I am not sure what limitations (if any) there are with regard to using these libraries on a mobile device, but there are some Facebook SDK's for C#.

Here is one -

于 2012-08-07T04:11:08.967 に答える
0

I have decided to follow a native approach to get as close to a seamless integration as I can get.

For iOS that means https://github.com/mono/monotouch-bindings/tree/master/facebook which are bindings to the official Objective-C Facebook SDK. I have done login so far and that was very easy. With the access token in place I can make future Facebook API calls from a library like the above or I can create a Mono class library with a service that wraps HTTP calls. This service can then be reused in any C# project (such as Mono for Android).

My plan is to do something similar for Android. I have seen people compile the java library in MonoDevelop as an AndroidResource and then create a wrapper which calls into the Java.

于 2012-08-13T13:59:01.547 に答える