Question:
In my project with Xamarin, I need to use the Facebook SDK binding for Android in version 3.6. However, I could only find the version 3.0 binding , which is outdated.
Does anyone know where I can find Facebook SDK Binding for Android in version 3.6, or how to adapt what I found to the newer SDK? Is there any other alternative?
Answer:
There are some alternatives for you to use:
Alternative 1 – Use Facebook's MonoDroid-Samples
You can simply follow the steps taken by the page you referenced:
- Download the SDK by clicking here
- Extract the
ZIP
- Go to
facebook
folder - Run
android update project -p .
- run
ant debug
- Run
zip -r facebook-android-sdk.zip bin/classes.jar bin/AndroidManifest.xml res
- Copy the
facebook-android-sdk.zip
file to your project's Jars folder
Alternative 2 – Use the Xamarin Store component
There are several components:
- The Facebook SDK , which uses the Facebook SDK for .NET project
- Xamarin.Social that works with Facebook, Twitter, App.net and Flickr
- Parse which is a company provides a Social API and was purchased by Facebook
- Xamarin.Auth which allows authentication via Facebook
Alternative 3 – Use Facebook SDK for .NET
This project can be found here , it is open source and is recommended for use on Windows 8 and Windows Phone, as well as working on Mono/Xamarin