Select a language to translate this page!
Powered by Microsoft® Translator
This blog post was authored by Sanjeev Dwivedi, a developer evangelist for Microsoft working with Facebook.
Today we are pleased to share with you that Facebook has announced the Facebook SDK for .NET as part of the Facebook Technology Partners program. This is a C#/XAML–based SDK that makes integrating your Windows Phone and Windows 8 style apps with Facebook a breeze. The SDK is an open-source project owned and released by the Outercurve Foundation. The Outercurve website for the SDK is http://facebooksdk.net, which hosts tutorials for both Windows 8 and Windows Phone, and has links to the GitHub repository where the source is hosted.
You can easily integrate the SDK into your project using NuGet, which automatically downloads and installs the SDK in your project. To do this, launch the Package Manager Console from the toolbar:Tools > Library Package Manager > Package Manager Console
Install the Facebook NuGet package as part of your app by running the following command:
The Facebook SDK for .NET makes your life easier by providing two key functionalities:
An added benefit of using this SDK is that it provides very similar APIs on both the Windows Phone and the Windows 8 platforms, so code-sharing between the two platforms becomes very easy. Here is a snippet that showcases retrieval of a Friends list from Facebook on Windows Phone. As you can see in the code example, setting up the client and making the call to retrieve your Friends list requires just a few lines of code. The rest of the code is your logic around picking the data that is of interest to you.
You can find more details about the SDK on the Outercurve Foundation website: http://facebooksdk.net/docs/. You can also follow the development of the SDK at its Facebook page, report any issues on Github issue tracker, and ask any follow-up questions on the StackOverFlow forum. For details about how to obtain an Access Token, see the Authenticate section in the Windows Phone tutorial.
The offerings and resources presented may be relevant to developers. However, this post is for informational purposes only and Microsoft is providing this information "as is" with no warranties. Each contribution is licensed to you under an agreement by its provider, not Microsoft. It is your responsibility to evaluate if these resources are suitable for your usage.
Very Nice, finally e can get facebook as a sdk for .NET