Question

They both have the same name and use the new Graph API, but which is better for ASP.NET 4.0 WebForms? The official SDK hasn't been updated in a few months, but the one on Codeplex was just updated last week. Does anyone have experience with both that could offer an opinion?

https://github.com/facebook/csharp-sdk

http://facebooksdk.codeplex.com/

Was it helpful?

Solution

I've worked with facebooksdk. The source code is well engineered and it works great for us.

The facebooksdk also allows you to use the new dynamic type when working with the Graph API which makes it really easy to work.

After logging in with the Javascript SDK, it is really easy to get info about the user.

FacebookApp facebook = new FacebookApp(GetFacebookSettings());
if (facebook.Session != null)
{
    dynamic parameters = new ExpandoObject();
    parameters.fields = "id,first_name,last_name,birthday,email";
    dynamic result = facebook.Api("me", parameters);

    // do something with the user's name...
    string firstName = result.first_name;
}

OTHER TIPS

I vote for facebooksdk from codeplex. It is regularly updated and bug fixed.

Its also very easy to work with. I recommend codeplex facebook C# sdk

Here is a code repository with well tested code for working with it facebook C# sdk code samples

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top