开发者

deserialize graph.facebook.com JSON feed in c#

I am trying to get all facebook posts from a facebook group in ASP.NET through graph.facebook.com/id/feed.

I have successfully managed to get all data I need, but in JSON format. How do I deserialize开发者_开发百科 this data so that I can use it?


If you are in c# 4.0 you can use the dynamic object to deserialize the graph object. see the c# facebook api here:

http://facebooksdk.codeplex.com/

http://ntotten.com/2010/09/dynamic-objects-and-the-facebook-c-sdk/

If you have a class to deserialize it into then something like NewtonSoft json library would help alot:

http://james.newtonking.com/pages/json-net.aspx

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜