27

There is a list of projects here, mainly the Facebook Developer Toolkit and Facebook.NET. However, I've seen a lot of negative feedback about the toolkit and it seems like Facebook.NET hasn't been upgraded to the latest facebook API.

Are either of these worth using? Any other good libraries out there?

Specifically I'm looking to use the library in a ASP.NET MVC application.

Thanks!

3
  • 1
    If you use third party library there's a serious risk it will break further down the line and possibly be abandoned. Treat it like any other integration and work with the API directly. Use technology based libraries to speed development. I wrote an article about this here with examples thecodeking.co.uk/2011/07/facebook-integration-via-hammock.html. Aug 26, 2011 at 17:19
  • @TheCodeKing I've worked for a social media analytics company for 6 years. We built our API's ourselves, but the problem with that is that unlike "other integration" projects, social media API's regularly change (and quite harsh). Building it by yourself means continuously having to implement changes. A properly supported library shouldn't have this issue.
    – atlaste
    May 2, 2014 at 14:32
  • I agree, but how do you define properly supported? If they are supplied by the vendor themselves then great, otherwise it's down to a middle layer. What I'm suggesting is using REST libraries and working directly with the social APIs where appropriate. May 3, 2014 at 18:12

15 Answers 15

12

I also started experimenting with Facebook Developer Toolkit (FDT) but dropped it for Facebook.NET. There is a fork of the latter at http://www.codeplex.com/fbnet which slowly covers recent changes in Facebook API. Have a look at this post since it has some interesting integration points for Facebook.NET and MVC http://www.coderjournal.com/2008/06/mvc-facebook-wonderful-development-platform/

FDT is made for WebForms mainly and it will take you some time to integrate it properly with MVC. And Matt is right: the documentation of FDT RC2 (last time I checked) was out of date and misleading. If you plan using this anyway check this out also http://corcoranpstech.blogspot.com/2008/06/facebook-mvc.html

You may also find a promising - still in alpha though - library (Facebook API for .NET) here: http://facebook.codeplex.com/

latest addition: the only library one should check right now is http://facebooksdk.codeplex.com/

2
  • 1
    Wow! Great finds on those links. I've been looking for that type of information but hadn't found it. Thanks!
    – Bryant
    Oct 28, 2008 at 14:20
  • 1
    I'm the coordinator on facebook.codeplex.com, thanks for including us, much appreciated! :D Apr 14, 2009 at 20:53
5

FYI, the 2.0 version of the FDT was just recently officially released, and a lot of work has been done to fix bugs and be more compatible with the current API (full disclosure - I'm one of the maintainers of the project).

The project had been dead for a little while, but I'm going to try and keep it more up-to-date from here on out, so you might just give it a try. Also, we're going to try and get better at evaluating and accepting patches from the community, so if you find something that's not working, feel free to submit a patch.

4

I think we're pretty much out in the cold.

The CodePlex toolkit is a complete nightmare, according to pretty much everybody who's tried to use it. The current state is that they've released a 2.0 version that isn't backward compatible to the old stuff and doesn't support the latest Facebook API changes. The old versions (1.7 and lower) are no longer supported and now broken with the latest API. The new version is buggy and incomplete, has been effectively abandoned by the developer, and is also incompatible with the latest API. And every version of it that I'm aware of is 3.5 only, which means you can't yet put it into production.

In short, It's pretty much the worst case scenario. Until somebody steps up and puts out a working library, you're better off rolling your own thing. I'm personally basing mine off of the facebook-c-sharp library, which is lightweight and basically works. It's winforms-only, so you'll need to tear pretty much everything out and just use the REST wrappers, but it will save a bunch of work getting started.

4

The one built by the Facebook engineers ? http://developers.facebook.com/blog/post/395

2
  • 1
    That SDK really doesn't do a whole lot. If you want something that supports oauth, the graph api, and the old rest api you should check out facebooksdk.codeplex.com Oct 3, 2010 at 3:01
  • I actually agree with Nathan. He does have a solid library. The "official" .NET SDK from Facebook doesn't seem to be getting the attention that I thought it would be. Oct 5, 2010 at 18:37
3

I've used FDT for a couple of small apps. There's lots of general borkyness, but as far as I can determine, most of it stems from the fact that the Facebook APIs are a highspeed moving target and are poorly documented (this was especially true around the introduction of the new profile design). I don't think one should fault the FDT developers for lack of compatitability when this is probably mostly due to facebook retirering or changing core features.

(I'm not affiliated with FDT although I have suggested a few patches).

3

Just saw that this was released today: The Facebook SDK from Microsoft.

This toolkit is provided as a Facebook Client Library similar to Facebook's PHP Client Library or Facebook's JavaScript library. The goal is to enable .NET developers to quickly and easily leverage the various features of the Facebook Platform. This toolkit has evolved over time with input from the community and from Microsoft. The latest release (v3.0) includes new architectural improvements and provides an asynchronous interface for using the toolkit from Silverlight and from WPF.

Looks like the best option out there now for .NET deleveopers.

1
  • Isn't this the same as Codeplex's Facebook Developer Toolkit? Jun 16, 2010 at 16:57
3

I would suggest using facebook's API directly. When I investigated SDKs several months ago, I found them all to be outdated and quite a minefield to navigate. facebook's SDK follows REST standards, so it should be fairly easy to pick up. Also, all of the pains that come with using facebook's API (e.g. bugs, api changing all the time) are still going to be there when using an SDK, but if you write your own code, it will be easier for you to deal with them. Also, when facebook makes a change (which they do all the time, including another one that they're proposing today), you won't have to wait for the SDK to be updated.

2

Facebook Developer Toolkit has been fine for everything I've needed it for. However, it's worth mentioning that at least as of September, the documentation, samples and tutorials for the Facebook Developer Toolkit are so out of date with its current release (Release Candidate 2) that it might be a minefield for a new developer.

1
  • Thanks Matt! Any suggestions for someone getting started with RC2?
    – Bryant
    Oct 8, 2008 at 22:18
1

The Facebook Developer Toolkit used to be pretty bad. Now version 2.0 is out and looks great. Here's a writeup.

How to Use the Facebook Developer Toolkit 2.0 - Devtacular

0

Another option that I just came across is the Silverlight Facebook Client Side API v0.001. Still in the demo/poc phase but looks pretty promising.

0

Do not use the Developer toolkit knowing the consulting firm who creates and supports this. I do not trust anything created by Clarity Consulting which is who created that Toolkit (errors, methods that are way too long, overcoded and weird & inefficient coding practices). Keep in mind Clarity is big on using DataSets in many of their home grown solutions (Good developers and architects DO NOT USE DATASETS no matter how big or small an application is...they're junk.). Granted there are no DataSets in that framework (Thank God) but that's the mentality behind that firm.

In fact, roll your own wrapper for Facebook if you want total control, even if it's more work. Otherwise, I'd go with the Facebook.NET API which to me seems very well coded and was done by an MS guru.

1
  • somehow I agree, the quality of the codes are not enough regarding this is the most "official" kit for .net
    – xandy
    May 24, 2009 at 16:07
0

The following page provide a great (and simple) port using mvc. http://onishimura.com/2009/04/13/facebook-and-aspnet-mvc

In FB Developer page, it provide a Addon link to MVC, which I found that is only for toolkit 1.X but not 2.0. And the need to extend the ViewPage to other master page, makes the controller of MVC not accessible to the FB API (which I can see no point that the View should have direct control on it). Above mentioned link provide such a port to create and put the api object in TempData dictionary which is accessible to controller.

0

Facebook Developer Toolkit has a 3.0 release coming out soon (supposedly end of October). See this blog post

I've been working with the latest FDT 3.0 source for a Facebook app using ASP.NET MVC and it has been very easy to work with. The sample code, documentation, and past questions/answers from the Codeplex forums have covered all of the issues I've encountered in coming up to speed on this library.

The other libraries for .NET are simply not being maintained and don't have the critical mass of usage or community engagement to help make you successful as a developer. I spent a lot of time trying to get my app working with the ".NET Facebook API Client" but there are very few signs of life in that community, which made me abandon it.

I did not try Facebook.NET as it has not had any source checked in since January 2008, which didn't bode well for a target that moves as quickly as the Facebook API.

0

As I posted on #3908765, I've found Facebook# to be pretty good, though I had to workaround a few things. Not perfect, but certainly a good starting point.

0

You might want to try a new API that I developed for the social graph here.

It's easy to use and while it will cost you $50 to unlock it will easily save you hours of time fiddling with the other libraries out there. It will also be continuously updates as I use my own library on my core website. That means that you don't have to worry about it breaking, in fact it's designed in such a way that if FB changes their objects it will still work (not break).

Please try it out and let me know how it works out for you.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.