开发者

Which Facebook C# SDK? Official (github) or unofficial (codeplex)? [closed]

Closed. This question is off-topic. It is not currently accepting answers.

Want to improve this question? Update the question so it's on-topic for Stack Overflow.

Closed 10 years ago.

Improve this 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 bo开发者_如何学Pythonth that could offer an opinion?

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

http://facebooksdk.codeplex.com/


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;
}


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜