0
我想檢索最新/最後一篇文章,並只獲取不是其他垃圾信息的消息。從下面的代碼spinet,我循環數組並獲得第一個元素。我怎樣才能得到消息而不是其他信息?如何從FacebookClient.get中獲取特定項目(我/訂閱源)結果
IDictionary<string, object> feed = fb.Get("me/feed") as dynamic;
JsonArray posts = feed.First().Value as dynamic;
我能在Java中做到這一點,但我想C#實現。
Connection<Post> myFeed = fbclient.fetchConnection("me/feed", Post.class);
System.out.println("First item in my feed: " + myFeed.getData().get(0).getMessage());